mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
Merge remote-tracking branch 'origin/feat_player'
This commit is contained in:
parent
bb437fe7ca
commit
25e31a7799
62 changed files with 1508 additions and 701 deletions
20
app/App.tsx
Normal file
20
app/App.tsx
Normal file
|
@ -0,0 +1,20 @@
|
|||
"use client";
|
||||
import { useUserStore } from "./store/auth";
|
||||
import { Navbar } from "./components/Navbar/Navbar";
|
||||
import { Inter } from "next/font/google";
|
||||
import { useEffect } from "react";
|
||||
const inter = Inter({ subsets: ["latin"] });
|
||||
|
||||
export const App = (props) => {
|
||||
const userStore = useUserStore((state) => state);
|
||||
useEffect(() => {
|
||||
userStore.checkAuth();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<body className={`${inter.className} overflow-x-hidden`}>
|
||||
<Navbar />
|
||||
{props.children}
|
||||
</body>
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue