From 5c7bafe5bb1eb1e6581eaf8e97cac0a781ac36b8 Mon Sep 17 00:00:00 2001 From: melloware Date: Thu, 22 Feb 2024 17:46:49 -0500 Subject: [PATCH] Fix #6033: Docs Sidebar Headless --- components/doc/sidebar/headlessdoc.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/components/doc/sidebar/headlessdoc.js b/components/doc/sidebar/headlessdoc.js index 56d6d9b367..70a7522f80 100644 --- a/components/doc/sidebar/headlessdoc.js +++ b/components/doc/sidebar/headlessdoc.js @@ -1,11 +1,11 @@ import { DocSectionCode } from '@/components/doc/common/docsectioncode'; import { DocSectionText } from '@/components/doc/common/docsectiontext'; -import { Button } from '@/components/lib/button/Button'; -import { Sidebar } from '@/components/lib/sidebar/Sidebar'; import { Avatar } from '@/components/lib/avatar/Avatar'; +import { Button } from '@/components/lib/button/Button'; import { Ripple } from '@/components/lib/ripple/Ripple'; -import { useState, useRef } from 'react'; +import { Sidebar } from '@/components/lib/sidebar/Sidebar'; import { StyleClass } from '@/components/lib/styleclass/StyleClass'; +import { useRef, useState } from 'react'; export function HeadlessDoc(props) { const [visible, setVisible] = useState(false); @@ -207,7 +207,6 @@ export default function HeadlessDemo() { const btnRef2 = useRef(null); const btnRef3 = useRef(null); const btnRef4 = useRef(null); - const [visible, setVisible] = useState(false); return (