mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-09-03 02:43:40 +00:00
use iam module login page for backoffice
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
import { Center, Box } from '@mantine/core';
|
||||
import { Outlet } from 'react-router-dom';
|
||||
|
||||
export function AuthLayout() {
|
||||
return (
|
||||
<Center h="100vh" bg="gray.0">
|
||||
<Box w={420}>
|
||||
<Outlet />
|
||||
</Box>
|
||||
</Center>
|
||||
);
|
||||
return <Outlet />;
|
||||
}
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
import { Group, Text, ActionIcon, Burger } from '@mantine/core';
|
||||
import { IconLogout } from '@tabler/icons-react';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { useAuth } from '../../features/auth/hooks/useAuth';
|
||||
import { useAuthUser } from '@tria-plc/iamui-common';
|
||||
|
||||
interface AppHeaderProps {
|
||||
onToggle: () => void;
|
||||
}
|
||||
|
||||
export function AppHeader({ onToggle }: AppHeaderProps) {
|
||||
const { logout } = useAuth();
|
||||
const { logout } = useAuthUser();
|
||||
const navigate = useNavigate();
|
||||
|
||||
const handleLogout = () => {
|
||||
|
||||
Reference in New Issue
Block a user