diff --git a/src/components/WebsiteLoader/WebsiteLoader.tsx b/src/components/WebsiteLoader/WebsiteLoader.tsx index 3dbf5fc..a3ff70f 100644 --- a/src/components/WebsiteLoader/WebsiteLoader.tsx +++ b/src/components/WebsiteLoader/WebsiteLoader.tsx @@ -2,6 +2,8 @@ import React, { useEffect, useRef, useState } from 'react'; import { AnimatePresence, motion } from 'framer-motion'; import { useTranslation } from 'react-i18next'; +const SafeAnimatePresence = AnimatePresence as any; + interface WebsiteLoaderProps { onComplete?: () => void; } @@ -426,7 +428,7 @@ export const WebsiteLoader = ({ onComplete }: WebsiteLoaderProps) => { {/* Dynamic cycling subtitle */}
- + { > {currentSubtitle} - +
diff --git a/src/screens/host/Host.tsx b/src/screens/host/Host.tsx index afa5c16..0a9b35f 100644 --- a/src/screens/host/Host.tsx +++ b/src/screens/host/Host.tsx @@ -1,12 +1,15 @@ import { Box } from '@chakra-ui/react'; import { Footer, NavigationBar, SocialNavigation } from '@screens/common'; -import { Outlet } from 'react-router-dom'; +import { Outlet, useLocation } from 'react-router-dom'; const Host = () => { + const { pathname } = useLocation(); + const isAddArticle = pathname.includes('add_article29'); + return ( - - + {!isAddArticle && } + {!isAddArticle && }