Skip to content

Commit

Permalink
Toolbar is back
Browse files Browse the repository at this point in the history
  • Loading branch information
mskelton committed Oct 1, 2023
1 parent 699a1fe commit 39ab561
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/(main)/blog/components/Demo/Demo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Demo({
const [isExpanded, setIsExpanded] = useState(false)

return (
<div className="relative rounded-xl border border-zinc-200 transition-colors dark:border-zinc-700/80">
<div className="relative rounded-lg border border-zinc-200 transition-colors dark:border-zinc-700/80">
<button
ref={focusRef}
aria-label="A generic container that is programmatically focused to test keyboard navigation"
Expand All @@ -43,14 +43,14 @@ export default function Demo({
{component}
</div>

{/* <DemoToolbar */}
{/* isExpanded={isExpanded} */}
{/* onFocusReset={() => focusRef.current?.focus({ preventScroll: true })} */}
{/* onReset={() => setReset(reset ^ 1)} */}
{/* onToggleExpanded={() => setIsExpanded(!isExpanded)} */}
{/* path={name} */}
{/* raw={raw} */}
{/* /> */}
<DemoToolbar
isExpanded={isExpanded}
onFocusReset={() => focusRef.current?.focus({ preventScroll: true })}
onReset={() => setReset(reset ^ 1)}
onToggleExpanded={() => setIsExpanded(!isExpanded)}
path={name}
raw={raw}
/>

<div
className={clsx(
Expand Down

0 comments on commit 39ab561

Please sign in to comment.