feat: 修改以来地址
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
TooltipProvider,
|
||||
TooltipTrigger,
|
||||
} from '@workspace/airo-ui/components/tooltip';
|
||||
import { useIsMobile } from '@workspace/airo-ui/hooks/use-mobile';
|
||||
import { useIsMobile } from '@workspace/airo-ui/hooks/use-mobile.tsx';
|
||||
import { cn } from '@workspace/airo-ui/lib/utils';
|
||||
|
||||
const SIDEBAR_COOKIE_NAME = 'sidebar:state';
|
||||
@@ -53,7 +53,7 @@ function useSidebar() {
|
||||
const context = React.useContext(SidebarContext);
|
||||
// Optionally warn in development when using the safe fallback
|
||||
if (process.env.NODE_ENV !== 'production' && context === SAFE_SIDEBAR_CONTEXT) {
|
||||
// console.warn('useSidebar is used outside of a SidebarProvider. Falling back to no-op context.');
|
||||
console.warn('useSidebar is used outside of a SidebarProvider. Falling back to no-op context.');
|
||||
}
|
||||
return context;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user