diff --git a/src/Button/button.tsx b/src/Button/button.tsx index 7dd86f1..efb520d 100644 --- a/src/Button/button.tsx +++ b/src/Button/button.tsx @@ -98,4 +98,4 @@ const Button: FC> = (props) => { ); }; -export default withDefaults(Button, defaultProps) as FC; +export default withDefaults(Button, defaultProps); diff --git a/src/Loading/loading-container.tsx b/src/Loading/loading-container.tsx index b88ff95..48e37cc 100644 --- a/src/Loading/loading-container.tsx +++ b/src/Loading/loading-container.tsx @@ -83,7 +83,4 @@ const LoadingContainer: FC = ({ ); }; -export default withDefaults( - LoadingContainer, - defaultProps, -) as FC; +export default withDefaults(LoadingContainer, defaultProps); diff --git a/src/Switch/switch.tsx b/src/Switch/switch.tsx index 4f0e92a..df52843 100644 --- a/src/Switch/switch.tsx +++ b/src/Switch/switch.tsx @@ -12,4 +12,4 @@ const Switch: FC> = ({ ...rest }) => { return
; }; -export default withDefaults(Switch, defaultProps) as React.FC; +export default withDefaults(Switch, defaultProps);