From 0d3ece63eb2334ebad1d288cce2344b40655300b Mon Sep 17 00:00:00 2001 From: wdy01684395 Date: Mon, 16 Oct 2023 18:14:32 +0800 Subject: [PATCH] Remove error introducing code --- .../src/select/demo/custom-tag-render.tsx | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/packages/design/src/select/demo/custom-tag-render.tsx b/packages/design/src/select/demo/custom-tag-render.tsx index beedea00e..694b04de0 100644 --- a/packages/design/src/select/demo/custom-tag-render.tsx +++ b/packages/design/src/select/demo/custom-tag-render.tsx @@ -1,5 +1,5 @@ import { Select, Tag } from '@oceanbase/design'; -import React, { useState } from 'react'; +import React from 'react'; const options = ['gold', 'green', 'red', 'cyan']; @@ -16,28 +16,16 @@ const tagRender = props => { ); }; -const App: React.FC = () => { - const [theme, setTheme] = useState(); - return ( - <> - - - // defaultValue={DEFAULT_THEME} - style={{ width: 120 }} - onChange={value => setTheme(value)} - > - 白色主题 - 黑色主题 - - - ); -}; +const App: React.FC = () => ( + <> +