انتقال تمام محتوای متنی سایت به دیتابیس — همه متنهای فرانتاند از GET /api/site خوانده میشوند
This commit is contained in:
@@ -57,6 +57,10 @@ function AnimatedRoutes() {
|
||||
function AppShell() {
|
||||
const { data, error, reload } = useSiteData();
|
||||
|
||||
useEffect(() => {
|
||||
if (data?.brand.name) document.title = data.brand.name;
|
||||
}, [data?.brand.name]);
|
||||
|
||||
return (
|
||||
<div dir="rtl" lang="fa" className="min-h-screen w-full overflow-x-hidden bg-ink font-pinar text-ivory">
|
||||
<Preloader />
|
||||
|
||||
Reference in New Issue
Block a user