Skip to content

Commit

Permalink
Fix NavbarSearch section state initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsukiKigoshi committed Nov 23, 2023
1 parent 298c5bf commit 16b51a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/NavbarSearch/NavbarSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ const tabs = {
],
};
export function NavbarSearch() {
const [section, setSection] = useState<"addNew" | "myItems">("myItems");
const [section, setSection] = useState<"addNew" | "myItems">("addNew");
const [value, onChange] = useState(false);

const courses = tabs[section].map((item) => (
Expand Down

0 comments on commit 16b51a9

Please sign in to comment.