I'm getting the defaultProps warning for CircularTrack and CircularProgress.
Warning: CircularTrack: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
Warning: CircularProgress: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.
I've attempted to modify the code like the below, but no luck. Does anyone have any ideas on how to resolve this?
import { CircularTrack } from 'react-circular-input';
const ModifiedCircularTrack = ({
stroke='#fff',
fill='#fff',
strokeWidth='1',
strokeLinecap='round',
...props
}) => {
return (
<CircularTrack
stroke={stroke}
fill={fill}
strokeWidth={strokeWidth}
{...props}
/>
);
};
export default ModifiedCircularTrack;
I'm getting the defaultProps warning for CircularTrack and CircularProgress.
I've attempted to modify the code like the below, but no luck. Does anyone have any ideas on how to resolve this?