Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore: remove sliding menu
  • Loading branch information
Aslam97 committed Sep 18, 2024
commit 776e0a5e0062494d190df919437a6d8013491e4d
14 changes: 1 addition & 13 deletions web/components/routes/link/bottom-bar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useCallback, useEffect, useRef } from "react"
import { motion, AnimatePresence } from "framer-motion"
import { icons, ZapIcon } from "lucide-react"
import { icons } from "lucide-react"
import { Button } from "@/components/ui/button"
import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip"
import { getSpecialShortcut, formatShortcut, isMacOS, cn } from "@/lib/utils"
Expand All @@ -13,7 +13,6 @@ import { PersonalLink } from "@/lib/schema"
import { ID } from "jazz-tools"
import { globalLinkFormExceptionRefsAtom } from "./partials/form/link-form"
import { useLinkActions } from "./hooks/use-link-actions"
import { showHotkeyPanelAtom } from "@/store/sidebar"

interface ToolbarButtonProps extends React.ComponentPropsWithoutRef<typeof Button> {
icon: keyof typeof icons
Expand Down Expand Up @@ -73,8 +72,6 @@ export const LinkBottomBar: React.FC = () => {
}, 100)
}, [setEditId, setCreateMode])

const [, setShowHotkeyPanel] = useAtom(showHotkeyPanelAtom)

useEffect(() => {
setGlobalLinkFormExceptionRefsAtom([
overlayRef,
Expand Down Expand Up @@ -187,15 +184,6 @@ export const LinkBottomBar: React.FC = () => {
</motion.div>
)}
</AnimatePresence>
<div className="absolute right-0 top-0 hidden h-full items-center justify-center p-2 pr-1 sm:flex">
<ToolbarButton
icon={"Zap"}
tooltip={`Hotkeys`}
onClick={() => {
setShowHotkeyPanel(true)
}}
/>
</div>
</motion.div>
)
}
Expand Down
82 changes: 0 additions & 82 deletions web/components/ui/sliding-menu.tsx

This file was deleted.

1 change: 0 additions & 1 deletion web/store/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ export const toggleCollapseAtom = atom(
get => get(isCollapseAtom),
(get, set) => set(isCollapseAtom, !get(isCollapseAtom))
)
export const showHotkeyPanelAtom = atom(false)