Skip to content

Commit 2ddaf93

Browse files
committed
fix deployment
1 parent 8456220 commit 2ddaf93

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
API_URL=http://localhost
1+
API_URL=https://forautobackend.herokuapp.com
22
ENV=development

components/Navigation/NavigationContent.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
} from 'react-icons/fi'
1313
import PropTypes from 'prop-types'
1414
import classNames from 'classnames'
15+
import MenuCreators from '~store/menu/creators'
1516
import { useDispatch, useSelector } from 'react-redux'
1617
import { isLoggedInSelector } from '~store/auth/selectors'
1718
import Creators from '~store/auth/creators'
@@ -84,12 +85,19 @@ const NavigationContent = ({ logoutCallback, className, fontSize }) => {
8485

8586
return map(isLoggedIn ? loggedInOptions : loggedOutOptions, (option, key) => {
8687
const { href, onClick, label, icon } = option
88+
89+
const handleClick = () => {
90+
if (onClick) {
91+
onClick();
92+
}
93+
dispatch(MenuCreators.toggleDrawerMenu())
94+
}
8795
return (
8896
<BaseButton
8997
className={classNames(styles.option, className)}
9098
key={key}
9199
{...(href ? { href, isInternalLink: true } : {})}
92-
{...(onClick ? { onClick } : {})}
100+
onClick={handleClick}
93101
>
94102
{icon}
95103
<span>{t(label)}</span>

i18n/translations/ru.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"button": {
223223
"signIn": "Войти",
224224
"findMore": "Узнать больше",
225-
"signUp": "Зарегистрироваться",
225+
"signUp": "Регистрация",
226226
"signUpWithGoogle": "Зарегистрироваться в Google",
227227
"signUpWithFacebook": "Зарегистрироваться через Facebook",
228228
"signInWithGoogle": "Войти через Google",

pages/auth/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Auth = () => {
99
const accessToken = asPath.split('access_token=')[1];
1010
// @ts-ignore
1111
window.localStorage.setItem('feathers-jwt', accessToken);
12-
// dispatch(AuthCreators.logIn({ strategy: 'jwt', accessToken }));
12+
dispatch(AuthCreators.logIn({ strategy: 'jwt', accessToken }));
1313
} else {
1414
push('/');
1515
}

0 commit comments

Comments
 (0)