refactor(icons): migrate workspace to Icones
This commit is contained in:
@@ -21,7 +21,7 @@ import {
|
||||
TooltipContent,
|
||||
TooltipTrigger,
|
||||
} from "@workspace/ui/components/tooltip"
|
||||
import { PanelLeftIcon } from "lucide-react"
|
||||
import { PanelLeftIcon } from "@workspace/ui/components/icon"
|
||||
import { LocalizedText, uiMessages, useMessage } from "./i18n"
|
||||
|
||||
const SIDEBAR_COOKIE_NAME = "sidebar_state"
|
||||
@@ -89,7 +89,9 @@ function SidebarProvider({
|
||||
|
||||
// Helper to toggle the sidebar.
|
||||
const toggleSidebar = React.useCallback(() => {
|
||||
return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open)
|
||||
return isMobile
|
||||
? setOpenMobile((currentOpen) => !currentOpen)
|
||||
: setOpen((currentOpen) => !currentOpen)
|
||||
}, [isMobile, setOpen, setOpenMobile])
|
||||
|
||||
// Adds a keyboard shortcut to toggle the sidebar.
|
||||
|
||||
Reference in New Issue
Block a user