Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liambai committed Oct 31, 2024
1 parent cea5982 commit 6faac93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
12 changes: 3 additions & 9 deletions viz/src/components/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { Link } from "react-router-dom";
import { useIsMobile } from "../hooks/use-mobile";
import HomeNavigator from "./HomeNavigator";
import { useState } from "react";
import { Menu } from "lucide-react";
import { Menu, X } from "lucide-react";

const LandingPage: React.FC = () => {
const isMobile = useIsMobile();
const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false);
Expand All @@ -26,14 +27,7 @@ const LandingPage: React.FC = () => {
onClick={() => setIsMobileMenuOpen(false)}
className="absolute top-9 right-6 text-gray-600 hover:text-gray-900"
>
<svg className="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M6 18L18 6M6 6l12 12"
/>
</svg>
<X />
</button>
<Link
to="/sae-visualizer"
Expand Down
1 change: 1 addition & 0 deletions viz/src/components/ui/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ const SidebarTrigger = React.forwardRef<
React.ComponentProps<typeof Button>
>(({ className, ...props }) => {
const { toggleSidebar } = useSidebar();
// @ts-expect-error some weird type issues
return <Menu size={26} className={className} onClick={toggleSidebar} {...props} />;
});
SidebarTrigger.displayName = "SidebarTrigger";
Expand Down

0 comments on commit 6faac93

Please sign in to comment.