Skip to content

Commit

Permalink
#11 Put array above export
Browse files Browse the repository at this point in the history
  • Loading branch information
tina-e committed Aug 15, 2022
1 parent 23b6430 commit 9da186b
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/components/SidebarHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,22 @@ import { useState } from "react"
import { Button } from "./Button"
import cx from "classnames"

const buttons = [
{
name: "Notepad",
icon: <Notepad size={18} />,
},
{
name: "Hints",
icon: <Scales size={18} />,
},
{
name: "Bookmarks",
icon: <Bookmarks size={18} />,
},
];

export const SidebarHeader = () => {
const buttons = [
{
name: "Notepad",
icon: <Notepad size={18} />,
},
{
name: "Hints",
icon: <Scales size={18} />,
},
{
name: "Bookmarks",
icon: <Bookmarks size={18} />,
},
];
const [activeButton, setActiveButton] = useState<string>(buttons[0].name)
const [sidebarOpen, setSidebarOpen] = useState<boolean>(true);

Expand Down

0 comments on commit 9da186b

Please sign in to comment.