Fix all type errors

This commit is contained in:
uwap 2018-01-19 16:53:16 +01:00
parent 050d32e2ad
commit cfe8897f2a
3 changed files with 13 additions and 5 deletions

View file

@ -92,9 +92,16 @@ export default class ControlMap extends React.Component<ControlMapProps> {
<LayersControlType
key={layer.name}
name={layer.name}
checked={layer.defaultVisibility === "visible"}>
checked={layer.defaultVisibility === "visible"}
removeLayer={(_layer) => {}}
removeLayerControl={(_layer) => {}}
addOverlay={(_layer, _name, _checked) => {}}
addBaseLayer={(_layer, _name, _checked) => {}}>
<ImageOverlay url={layer.image}
bounds={Object.values(layer.bounds).map(convertPoint)}
bounds={[
convertPoint(layer.bounds.topLeft),
convertPoint(layer.bounds.bottomRight)
]}
opacity={layer.opacity || 1} />
</LayersControlType>
);

View file

@ -1,5 +1,5 @@
// @flow
import React from "react";
import * as React from "react";
import withStyles from "material-ui/styles/withStyles";
import Drawer from "material-ui/Drawer";
@ -14,7 +14,8 @@ export type SideBarProps = {
control: ?Control,
open: boolean,
onCloseRequest: () => void,
icon?: ?string
icon?: ?string,
children?: React.Node
};
export type SideBarState = {