From e05e3dafd72e4c47abbc688821ad05194e287720 Mon Sep 17 00:00:00 2001 From: literat Date: Thu, 12 Dec 2024 16:25:45 +0100 Subject: [PATCH] fixup! Style(web-react): Fix docs using makrdown linter --- packages/web-react/src/components/Accordion/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/web-react/src/components/Accordion/README.md b/packages/web-react/src/components/Accordion/README.md index 3a9a4826a3..6cc47f094d 100644 --- a/packages/web-react/src/components/Accordion/README.md +++ b/packages/web-react/src/components/Accordion/README.md @@ -11,7 +11,7 @@ import { AccordionOpenStateType } from '@lmc-eu/spirit-web-react/types'; ``` ```typescript -const [openState, setOpenState] = useState < AccordionOpenStateType > undefined; +const [openState, setOpenState] = useState(undefined); ``` ```javascript @@ -55,13 +55,13 @@ const toggle = (id) => { ### Default with Opened on Init ```typescript -const [openState, setOpenState] = useState < AccordionOpenStateType > ['accordion-item-example-1']; +const [openState, setOpenState] = useState(['accordion-item-example-1']); ``` ### Open Only One at a Time ```typescript -const [openState, setOpenState] = useState < AccordionOpenStateType > ''; +const [openState, setOpenState] = useState(''); ``` ### Uncontrolled Accordion (Stay Open)