Skip to content

Commit

Permalink
Add types to BootWarning component (#1932)
Browse files Browse the repository at this point in the history
  • Loading branch information
belcherj authored Feb 26, 2020
1 parent 4964ffd commit 5ea0e8a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/components/boot-warning/index.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import React from 'react';
import PropTypes from 'prop-types';

import React, { FunctionComponent } from 'react';
import './style';

const BootWarning = ({ children }) => (
const BootWarning: FunctionComponent = ({ children }) => (
<h3 className="boot-warning__message">{children}</h3>
);

BootWarning.propTypes = {
children: PropTypes.node.isRequired,
};

export default BootWarning;

0 comments on commit 5ea0e8a

Please sign in to comment.