1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Merge branch 'main' into fix-rollout-datatype

This commit is contained in:
sighphyre 2022-03-23 11:59:33 +02:00 committed by GitHub
commit 04a85da1be
2 changed files with 6 additions and 4 deletions

View File

@ -456,8 +456,8 @@ export const routes = [
type: 'protected', type: 'protected',
menu: {}, menu: {},
}, },
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
{ {
path: '/login', path: '/login',
title: 'Log in', title: 'Log in',
@ -478,15 +478,16 @@ export const routes = [
/* If you update this route path, make sure you update the path in SWRProvider.tsx */ /* If you update this route path, make sure you update the path in SWRProvider.tsx */
{ {
path: '/reset-password', path: '/reset-password',
title: 'reset-password', title: 'Reset password',
hidden: true, hidden: true,
component: ResetPassword, component: ResetPassword,
type: 'unprotected', type: 'unprotected',
menu: {}, menu: {},
}, },
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
{ {
path: '/forgotten-password', path: '/forgotten-password',
title: 'reset-password', title: 'Forgotten password',
hidden: true, hidden: true,
component: ForgottenPassword, component: ForgottenPassword,
type: 'unprotected', type: 'unprotected',

View File

@ -32,7 +32,8 @@ const SWRProvider: React.FC<ISWRProviderProps> = ({
if ( if (
path === formatApiPath('login') || path === formatApiPath('login') ||
path === formatApiPath('new-user') || path === formatApiPath('new-user') ||
path === formatApiPath('reset-password') path === formatApiPath('reset-password') ||
path === formatApiPath('forgotten-password')
) { ) {
return; return;
} }