diff --git a/src/App.tsx b/src/App.tsx index f306722..d267c41 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -12,8 +12,6 @@ import routerBindings, {NavigateToResource, CatchAllNavigate, UnsavedChangesNoti import {ColorModeContextProvider} from './contexts/color-mode' import {Header} from './components/header' import {Login} from './pages/login' -import {Register} from './pages/register' -import {ForgotPassword} from './pages/forgotPassword' import {authProvider} from './authProvider' import {i18nProvider} from './i18nProvider' @@ -250,8 +248,6 @@ function App() { } > } /> - } /> - } /> diff --git a/src/locales/ru/translation.json b/src/locales/ru/translation.json index d5ece81..1da23c4 100644 --- a/src/locales/ru/translation.json +++ b/src/locales/ru/translation.json @@ -48,36 +48,6 @@ "requiredEmail": "Электронная почта обязательна", "requiredPassword": "Пароль обязателен" } - }, - "forgotPassword": { - "title": "Забыли пароль?", - "fields": { - "email": "Электронная почта" - }, - "buttons": { - "haveAccount": "Eсть аккаунт?", - "submit": "Восстановить пароль" - }, - "errors": { - "requiredEmail": "Электронная почта обязательна", - "validEmail": "Некорректный адрес электронной почты" - } - }, - "register": { - "title": "Регистрация", - "email": "Почта", - "fields": { - "password": "Пароль" - }, - "signup": "Зарегистрироваться", - "buttons": { - "haveAccount": "Есть аккаунт?" - }, - "errors": { - "requiredEmail": "Электронная почта обязательна", - "validEmail": "Некорректный адрес электронной почты", - "requiredPassword": "Пароль обязателен" - } } }, "country": { diff --git a/src/pages/forgotPassword/index.tsx b/src/pages/forgotPassword/index.tsx deleted file mode 100644 index d03116a..0000000 --- a/src/pages/forgotPassword/index.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import {AuthPage, ThemedTitleV2} from '@refinedev/mui' -import {ProjectIcon} from '../../components/ui/Icons' - -export const ForgotPassword = () => { - return } />} /> -} diff --git a/src/pages/login/index.tsx b/src/pages/login/index.tsx index ca9b75f..e772e03 100644 --- a/src/pages/login/index.tsx +++ b/src/pages/login/index.tsx @@ -6,14 +6,8 @@ export const Login = () => { } />} - // formProps={ - // { - // // defaultValues: { - // // email: 'test@wn.ru', - // // password: 'testwn', - // // }, - // } - // } + forgotPasswordLink={false} + registerLink={false} // only admin can add users /> ) } diff --git a/src/pages/register/index.tsx b/src/pages/register/index.tsx deleted file mode 100644 index 6b39669..0000000 --- a/src/pages/register/index.tsx +++ /dev/null @@ -1,6 +0,0 @@ -import {AuthPage, ThemedTitleV2} from '@refinedev/mui' -import {ProjectIcon} from '../../components/ui/Icons' - -export const Register = () => { - return } />} /> -}