mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Suppress prop types warning in RadioGroupComponent (#12249)
When editing the gas fee for a transaction, the following warning is being output to the console: Warning: Failed prop type: Connector: prop type `isFirst` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`. This commit fixes this issue.
This commit is contained in:
parent
a174d50ba5
commit
7c4bd78f2e
@ -24,8 +24,8 @@ function Connector({ isFirst, isLast }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Connector.propTypes = {
|
Connector.propTypes = {
|
||||||
isFirst: PropTypes.boolean,
|
isFirst: PropTypes.bool,
|
||||||
isLast: PropTypes.boolean,
|
isLast: PropTypes.bool,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function RadioGroup({ options, name, selectedValue, onChange }) {
|
export default function RadioGroup({ options, name, selectedValue, onChange }) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user