diff --git a/components/doc/dialog/basicdoc.js b/components/doc/dialog/basicdoc.js index 8dc1511465..114c6f45f0 100644 --- a/components/doc/dialog/basicdoc.js +++ b/components/doc/dialog/basicdoc.js @@ -6,11 +6,9 @@ import { DocSectionText } from '../common/docsectiontext'; export function BasicDoc(props) { const [displayBasic, setDisplayBasic] = useState(false); - const [displayBasic2, setDisplayBasic2] = useState(false); const dialogFuncMap = { - displayBasic: setDisplayBasic, - displayBasic2: setDisplayBasic2 + displayBasic: setDisplayBasic }; const onClick = (name, position) => { @@ -25,30 +23,13 @@ export function BasicDoc(props) { dialogFuncMap[`${name}`](false); }; - const renderFooter = (name) => { - return ( -
-
- ); - }; - const code = { basic: `