react-nipple icon indicating copy to clipboard operation
react-nipple copied to clipboard

fixed prop types

Open mjforan opened this issue 3 years ago • 2 comments

JavaScript doesn't have separate integer and float types, just "number". You can see the available prop types here. This was causing the console to display Warning: Failed prop type: ReactNipple: prop type `options.size` is invalid; it must be a function, usually from the `prop-types` package, but received `undefined`.

mjforan avatar Dec 02 '22 18:12 mjforan

Stoked to see this fix. Hoping it will get merged 🤞

Thanks @mjforan

jasonmcleod avatar Dec 28 '22 14:12 jasonmcleod

Looks like this repo is dead. New npm package here, with the prop types fix: https://www.npmjs.com/package/@mjforan/react-nipple

mjforan avatar Apr 05 '23 18:04 mjforan