Skip to content

Commit 053cb2e

Browse files
committed
fix: replace React.PropTypes with PropTypes
1 parent 70c18ee commit 053cb2e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/js/FlagBlock.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @flow
22
import React from 'react'
3+
import PropTypes from 'prop-types'
34
import CssModules from 'react-css-modules'
45
import CustomFlag from './CustomFlag'
56
import { getStylePropName, generateFlagLink, getRandomElements } from './functions'
@@ -23,8 +24,8 @@ const renderCustomFlagChildren = (
2324
}
2425

2526
renderCustomFlagChildren.propTypes = {
26-
name: React.PropTypes.string.isRequired,
27-
code: React.PropTypes.string.isRequired
27+
name: PropTypes.string.isRequired,
28+
code: PropTypes.string.isRequired
2829
}
2930

3031
const FlagBlock = (props: FlagBlockPropsType): React$Element<*> => {

0 commit comments

Comments
 (0)