Skip to content

Commit

Permalink
refactor: clean up unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
greenpixels committed Oct 2, 2023
1 parent d8cec50 commit f08f42c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function App() {
</span>
</Header>
<div className="flex relative h-full">
<Sidebar id="test" showDrawer={showDrawer} />
<Sidebar showDrawer={showDrawer} />
<Layout className="h-full w-full" style={{ padding: "0 24px 24px" }}>
<Breadcrumb
style={{ margin: "16px 0" }}
Expand Down
2 changes: 0 additions & 2 deletions client/src/components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import { useNavigate } from "react-router-dom";

type SidebarProps = {
showDrawer: boolean;
id: string;
};

export function Sidebar(props: SidebarProps) {
const navigate = useNavigate();
return (
<div
id={props.id}
className={
"transition ease-in-out z-10 absolute top-0 bottom-0 " +
(!props.showDrawer
Expand Down

0 comments on commit f08f42c

Please sign in to comment.