Rename Logout into LogoutAction
This commit is contained in:
parent
c775757314
commit
8ceaca5f46
|
|
@ -1,6 +1,6 @@
|
||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import logout from "@/modules/auth/actions/logout";
|
import logoutAction from "@/modules/auth/actions/logoutAction";
|
||||||
import { useEffect } from "react";
|
import { useEffect } from "react";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -9,9 +9,9 @@ import { useEffect } from "react";
|
||||||
*/
|
*/
|
||||||
export default function LogoutPage() {
|
export default function LogoutPage() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const logoutAction = async () => await logout();
|
(async () => await logoutAction())()
|
||||||
|
.then(() => {})
|
||||||
logoutAction();
|
.catch(() => {});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return <div></div>;
|
return <div></div>;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user