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',
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',
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 */
{
path: '/reset-password',
title: 'reset-password',
title: 'Reset password',
hidden: true,
component: ResetPassword,
type: 'unprotected',
menu: {},
},
/* If you update this route path, make sure you update the path in SWRProvider.tsx */
{
path: '/forgotten-password',
title: 'reset-password',
title: 'Forgotten password',
hidden: true,
component: ForgottenPassword,
type: 'unprotected',

View File

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