Update auth components
Just moving import order and changing an unused class name
This commit is contained in:
parent
a70a8e4a30
commit
6683a2571b
2 changed files with 10 additions and 9 deletions
|
|
@ -5,18 +5,18 @@ import { useTranslation } from 'react-i18next'
|
||||||
import axios, { AxiosError, AxiosResponse } from 'axios'
|
import axios, { AxiosError, AxiosResponse } from 'axios'
|
||||||
|
|
||||||
import api from '~utils/api'
|
import api from '~utils/api'
|
||||||
import { setHeaders } from '~utils/userToken'
|
|
||||||
import { accountState } from '~utils/accountState'
|
import { accountState } from '~utils/accountState'
|
||||||
|
import changeLanguage from '~utils/changeLanguage'
|
||||||
|
import { setHeaders } from '~utils/userToken'
|
||||||
|
|
||||||
import Button from '~components/common/Button'
|
import Button from '~components/common/Button'
|
||||||
import Input from '~components/common/Input'
|
import Input from '~components/common/Input'
|
||||||
import { Dialog } from '~components/common/Dialog'
|
import { Dialog } from '~components/common/Dialog'
|
||||||
import DialogContent from '~components/common/DialogContent'
|
|
||||||
import changeLanguage from '~utils/changeLanguage'
|
|
||||||
|
|
||||||
import styles from './index.module.scss'
|
|
||||||
import DialogHeader from '~components/common/DialogHeader'
|
import DialogHeader from '~components/common/DialogHeader'
|
||||||
import DialogFooter from '~components/common/DialogFooter'
|
import DialogFooter from '~components/common/DialogFooter'
|
||||||
|
import DialogContent from '~components/common/DialogContent'
|
||||||
|
|
||||||
|
import styles from './index.module.scss'
|
||||||
|
|
||||||
interface ErrorMap {
|
interface ErrorMap {
|
||||||
[index: string]: string
|
[index: string]: string
|
||||||
|
|
@ -217,7 +217,7 @@ const LoginModal = (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={openChange}>
|
<Dialog open={open} onOpenChange={openChange}>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
className="Login"
|
className="login"
|
||||||
footerref={footerRef}
|
footerref={footerRef}
|
||||||
onEscapeKeyDown={onEscapeKeyDown}
|
onEscapeKeyDown={onEscapeKeyDown}
|
||||||
onOpenAutoFocus={onOpenAutoFocus}
|
onOpenAutoFocus={onOpenAutoFocus}
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,11 @@ import { accountState } from '~utils/accountState'
|
||||||
import Button from '~components/common/Button'
|
import Button from '~components/common/Button'
|
||||||
import Input from '~components/common/Input'
|
import Input from '~components/common/Input'
|
||||||
import { Dialog } from '~components/common/Dialog'
|
import { Dialog } from '~components/common/Dialog'
|
||||||
import DialogContent from '~components/common/DialogContent'
|
|
||||||
import styles from './index.module.scss'
|
|
||||||
import DialogHeader from '~components/common/DialogHeader'
|
import DialogHeader from '~components/common/DialogHeader'
|
||||||
import DialogFooter from '~components/common/DialogFooter'
|
import DialogFooter from '~components/common/DialogFooter'
|
||||||
|
import DialogContent from '~components/common/DialogContent'
|
||||||
|
|
||||||
|
import styles from './index.module.scss'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
open: boolean
|
open: boolean
|
||||||
|
|
@ -296,7 +297,7 @@ const SignupModal = (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<Dialog open={open} onOpenChange={openChange}>
|
<Dialog open={open} onOpenChange={openChange}>
|
||||||
<DialogContent
|
<DialogContent
|
||||||
className="Signup"
|
className="signup"
|
||||||
footerref={footerRef}
|
footerref={footerRef}
|
||||||
onEscapeKeyDown={onEscapeKeyDown}
|
onEscapeKeyDown={onEscapeKeyDown}
|
||||||
onOpenAutoFocus={onOpenAutoFocus}
|
onOpenAutoFocus={onOpenAutoFocus}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue