Cleanup before review

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-08-25 10:07:49 +02:00
parent 8a08a9e7af
commit 19c9fdc258
2 changed files with 2 additions and 7 deletions
@@ -39,15 +39,10 @@ export default {
],
};
const handleSearch = (input: string) => {
// eslint-disable-next-line no-console
console.log(input);
};
export const SampleSidebar = () => (
<Sidebar>
<SidebarGroup label="Menu" icon={MenuIcon}>
<SidebarSearchField onSearch={handleSearch} to="/search" />
<SidebarSearchField onSearch={() => {}} to="/search" />
<SidebarDivider />
<SidebarItem icon={HomeOutlinedIcon} to="#" text="Home" />
<SidebarItem icon={HomeOutlinedIcon} to="#" text="Plugins" />
@@ -46,5 +46,5 @@ export type SidebarContextType = {
};
export const SidebarContext = createContext<SidebarContextType>({
isOpen: true,
isOpen: false,
});