diff --git a/src/components/AppLayout.jsx b/src/components/AppLayout.tsx
similarity index 73%
rename from src/components/AppLayout.jsx
rename to src/components/AppLayout.tsx
index 99b669ea5..90392ab92 100644
--- a/src/components/AppLayout.jsx
+++ b/src/components/AppLayout.tsx
@@ -2,16 +2,16 @@ import React from 'react'
import PropTypes from 'prop-types'
import ScrollContainer from './ScrollContainer'
-class AppLayout extends React.Component {
- static propTypes = {
- toolbar: PropTypes.element.isRequired,
- layerList: PropTypes.element.isRequired,
- layerEditor: PropTypes.element,
- map: PropTypes.element.isRequired,
- bottom: PropTypes.element,
- modals: PropTypes.node,
- }
+type AppLayoutProps = {
+ toolbar: React.ReactElement
+ layerList: React.ReactElement
+ layerEditor?: React.ReactElement
+ map: React.ReactElement
+ bottom?: React.ReactElement
+ modals?: React.ReactNode
+};
+class AppLayout extends React.Component
{m}
}) diff --git a/src/components/AppToolbar.jsx b/src/components/AppToolbar.tsx similarity index 77% rename from src/components/AppToolbar.jsx rename to src/components/AppToolbar.tsx index 13d62caef..97e4ac793 100644 --- a/src/components/AppToolbar.jsx +++ b/src/components/AppToolbar.tsx @@ -1,5 +1,4 @@ import React from 'react' -import PropTypes from 'prop-types' import classnames from 'classnames' import {detect} from 'detect-browser'; @@ -9,27 +8,28 @@ import pkgJson from '../../package.json' // This is required because of