mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
type: correct type & remove useless type (#43256)
This commit is contained in:
parent
91be823272
commit
4a4d276d25
@ -76,8 +76,6 @@ type CompoundedComponent = React.ForwardRefExoticComponent<
|
||||
__ANT_BUTTON: boolean;
|
||||
};
|
||||
|
||||
type Loading = number | boolean;
|
||||
|
||||
type LoadingConfigType = {
|
||||
loading: boolean;
|
||||
delay: number;
|
||||
@ -137,7 +135,7 @@ const InternalButton: React.ForwardRefRenderFunction<
|
||||
|
||||
const loadingOrDelay = useMemo<LoadingConfigType>(() => getLoadingConfig(loading), [loading]);
|
||||
|
||||
const [innerLoading, setLoading] = useState<Loading>(loadingOrDelay.loading);
|
||||
const [innerLoading, setLoading] = useState<boolean>(loadingOrDelay.loading);
|
||||
|
||||
const [hasTwoCNChar, setHasTwoCNChar] = useState<boolean>(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user