We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c18ee commit 053cb2eCopy full SHA for 053cb2e
src/js/FlagBlock.js
@@ -1,5 +1,6 @@
1
// @flow
2
import React from 'react'
3
+import PropTypes from 'prop-types'
4
import CssModules from 'react-css-modules'
5
import CustomFlag from './CustomFlag'
6
import { getStylePropName, generateFlagLink, getRandomElements } from './functions'
@@ -23,8 +24,8 @@ const renderCustomFlagChildren = (
23
24
}
25
26
renderCustomFlagChildren.propTypes = {
- name: React.PropTypes.string.isRequired,
27
- code: React.PropTypes.string.isRequired
+ name: PropTypes.string.isRequired,
28
+ code: PropTypes.string.isRequired
29
30
31
const FlagBlock = (props: FlagBlockPropsType): React$Element<*> => {
0 commit comments