diff --git a/resources/js/api/authentication.ts b/resources/js/api/authentication.ts index c5b34f63dfe..e0f538f9353 100644 --- a/resources/js/api/authentication.ts +++ b/resources/js/api/authentication.ts @@ -26,8 +26,8 @@ export const googleLogin = { }, }; -export function logout() { +export const logout = () => { const { clearUser } = useUserStore.getState(); clearUser(); -} +}; diff --git a/resources/js/screens/Home.tsx b/resources/js/screens/Home.tsx index 531fb3e6c3d..475cd705c78 100644 --- a/resources/js/screens/Home.tsx +++ b/resources/js/screens/Home.tsx @@ -2,7 +2,7 @@ import { MODAL_ROUTES } from "@/router"; import { useNavigateModal } from "@/router/useNavigateModal"; import { Button } from "@/ui"; -export function Home() { +export const Home = () => { const navigateModal = useNavigateModal(); return (
@@ -21,4 +21,4 @@ export function Home() {
); -} +};