{
@@ -28,13 +38,4 @@ const VerticalToggleButton = (props) => {
);
};
-VerticalToggleButton.propTypes = {
- onToggle: PropTypes.func.isRequired,
- activeValue: PropTypes.string.isRequired,
- options: PropTypes.arrayOf(PropTypes.shape({
- label: PropTypes.string,
- value: PropTypes.string,
- })).isRequired,
-};
-
export default VerticalToggleButton;
diff --git a/frontend/lib/js/header/Header.js b/frontend/lib/js/header/Header.js
index 4a8654f099..c09184527d 100644
--- a/frontend/lib/js/header/Header.js
+++ b/frontend/lib/js/header/Header.js
@@ -1,9 +1,15 @@
+// @flow
+
import React from 'react';
-import PropTypes from 'prop-types';
import T from 'i18n-react';
import { connect } from 'react-redux';
-class Header extends React.Component {
+type PropsType = {
+ version: string,
+ isDevelopment: boolean,
+};
+
+class Header extends React.Component {
);
}
-Tag.propTypes = {
- label: PropTypes.string.isRequired,
- isSelected: PropTypes.bool.isRequired,
- onClick: PropTypes.func,
-};
-
export default Tag;
diff --git a/frontend/lib/js/tags/Tags.js b/frontend/lib/js/tags/Tags.js
index 59d0eab9e4..8a5bd651a7 100644
--- a/frontend/lib/js/tags/Tags.js
+++ b/frontend/lib/js/tags/Tags.js
@@ -1,8 +1,18 @@
+// @flow
+
import React from 'react';
-import PropTypes from 'prop-types';
import Tag from './Tag';
-export const Tags = (props) => {
+type PropsType = {
+ className: string,
+ tags: {
+ label: string,
+ isSelected: boolean,
+ }[],
+ onClickTag: (string) => void,
+};
+
+export const Tags = (props: PropsType) => {
return !!props.tags && props.tags.length > 0 && (