From 67c8e8b259bc1b5267f5fbf82a6e74316746c6d2 Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 30 Oct 2023 15:02:00 +0800 Subject: [PATCH] demo: simplify demos (#45585) --- components/popover/demo/arrow.tsx | 3 +-- components/tooltip/demo/arrow.tsx | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/components/popover/demo/arrow.tsx b/components/popover/demo/arrow.tsx index 3f5bd53262..81e9dcb32a 100644 --- a/components/popover/demo/arrow.tsx +++ b/components/popover/demo/arrow.tsx @@ -12,7 +12,6 @@ const content = ( const buttonWidth = 80; const App: React.FC = () => { - const options = ['Show', 'Hide', 'Center']; const [arrow, setArrow] = useState('Show'); const mergedArrow = useMemo(() => { @@ -36,7 +35,7 @@ const App: React.FC = () => { }} > { setArrow(val); }} diff --git a/components/tooltip/demo/arrow.tsx b/components/tooltip/demo/arrow.tsx index a68cec9850..ecf7621fff 100644 --- a/components/tooltip/demo/arrow.tsx +++ b/components/tooltip/demo/arrow.tsx @@ -6,7 +6,6 @@ const text = prompt text; const buttonWidth = 80; const App: React.FC = () => { - const options = ['Show', 'Hide', 'Center']; const [arrow, setArrow] = useState('Show'); const mergedArrow = useMemo(() => { @@ -31,7 +30,7 @@ const App: React.FC = () => { > { setArrow(val); }}