From 16386b78340e26d9c15ebf32cbc8ce78901712a7 Mon Sep 17 00:00:00 2001 From: Juan Tejera Date: Wed, 10 Jan 2024 15:39:28 -0300 Subject: [PATCH] ref: components that were exporting a function now export an arrow function --- resources/js/api/authentication.ts | 4 ++-- resources/js/screens/Home.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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() {
); -} +};