mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 19:12:50 +00:00
fixes
This commit is contained in:
@@ -7,7 +7,7 @@ interface ProtectedRouteProps {
|
||||
loginPath?: string;
|
||||
}
|
||||
|
||||
export function ProtectedRoute({ children, loginPath = '/login' }: ProtectedRouteProps) {
|
||||
export function ProtectedRoute({ children, loginPath = '/' }: ProtectedRouteProps) {
|
||||
const location = useLocation();
|
||||
const token = useAuthToken();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user