From 272230ff62a9e3fc228e7939436545334bbd98ee Mon Sep 17 00:00:00 2001 From: hengkx Date: Mon, 24 Aug 2020 10:32:39 +0800 Subject: [PATCH] loadingIcon optional --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 271eeee..41e81e6 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -22,7 +22,7 @@ interface SwitchProps tabIndex?: number; checked?: boolean; defaultChecked?: boolean; - loadingIcon: React.ReactNode; + loadingIcon?: React.ReactNode; style?: React.CSSProperties; title?: string; }