This repository was archived by the owner on Feb 14, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,13 +5,15 @@ import { Form, Formik } from 'formik';
55import { FormTextField , SubmitButton } from '../components/Form' ;
66import React , { useContext , useEffect , useState } from 'react' ;
77
8- import getConfig from 'next/config' ;
98import Link from '../components/Link' ;
109import LocationCityIcon from '@material-ui/icons/LocationCity' ;
11- import { observer } from 'mobx-react-lite' ;
1210import Page from '../components/Page' ;
1311import RequestError from '../components/RequestError' ;
1412import { StoreContext } from '../store' ;
13+ import getConfig from 'next/config' ;
14+ import moment from 'moment' ;
15+ import { observer } from 'mobx-react-lite' ;
16+ import { setOrganizationId } from '../utils/fetch' ;
1517import { useRouter } from 'next/router' ;
1618import useTranslation from 'next-translate/useTranslation' ;
1719
@@ -73,6 +75,8 @@ const SignIn = observer(() => {
7375 store . user
7476 ) ;
7577 }
78+ setOrganizationId ( store . organization . selected . _id ) ;
79+ moment . locale ( store . organization . selected . locale ) ;
7680 router . push ( `/${ store . organization . selected . name } /dashboard` ) ;
7781 } else {
7882 router . push ( '/firstaccess' ) ;
You can’t perform that action at this time.
0 commit comments