refactored Authentication
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { DashboardLayout } from '@/Screens/Dashboard/Layout';
|
||||
|
||||
export const ChatList = () => {
|
||||
|
||||
return (
|
||||
<DashboardLayout mobileFull>
|
||||
<h1>ChatList</h1>
|
||||
</DashboardLayout>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
import { useEffect } from 'react';
|
||||
import { useAuth } from 'hooks/useAuth';
|
||||
|
||||
export const SignoutScreen = () => {
|
||||
const { signout } = useAuth();
|
||||
|
||||
useEffect(() => {
|
||||
const logout = async () => {
|
||||
await signout();
|
||||
window.location.href = '/';
|
||||
};
|
||||
logout();
|
||||
}, []);
|
||||
|
||||
return null;
|
||||
};
|
||||
Reference in New Issue
Block a user