diff --git a/components/HomeBanner.tsx b/components/HomeBanner.tsx index 1995b3d..c2a50be 100644 --- a/components/HomeBanner.tsx +++ b/components/HomeBanner.tsx @@ -5,6 +5,7 @@ import { fetchSettingByCode } from "@/api/serversetting"; import { X, ChevronUp, ChevronsDown } from "lucide-react"; import { ChatInputBox } from "@/components/ChatInputBox/ChatInputBox"; import { VideoCreationForm } from '@/components/pages/create-video/CreateInput'; +import { useDeviceType } from '@/hooks/useDeviceType'; export const HOME_BANNER_CODE = "homeBanner"; const HOME_BANNER_COLLAPSE_KEY = "homeBannerCollapsedDate"; @@ -42,6 +43,8 @@ export default function HomeBanner() { const autoCollapseTimerRef = useRef | null>(null); const skipAutoCollapseRef = useRef(false); + const { isMobile, isDesktop } = useDeviceType(); + /** Returns YYYY-MM-DD for user's local timezone */ const getLocalDateKey = () => { const now = new Date(); @@ -239,7 +242,7 @@ export default function HomeBanner() { {/* Base content - always present under the banner */} -
+
diff --git a/components/layout/type.ts b/components/layout/type.ts index 3678316..b9b42b1 100644 --- a/components/layout/type.ts +++ b/components/layout/type.ts @@ -17,7 +17,7 @@ export const navigationItems: Navigations[] = [ { name: 'Home', href: '/home', icon: Home }, { name: 'My Portfolio', href: '/movies', icon: BookHeart }, { name: 'Share', href: '/share', icon: Gift }, - { name: 'Create', href: '/create', icon: Plus }, + // { name: 'Create', href: '/create', icon: Plus }, ], } ]; \ No newline at end of file