Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpyb committed Feb 22, 2022
1 parent 86a04d9 commit 45af5e1
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/views/login/index.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import React, { useState } from 'react'
import { useNavigate } from 'react-router-dom'

// TODO hook 用法
// import { useTranslation } from 'react-i18next'

// TODO HOC 用法
import { withTranslation } from 'react-i18next'

import DocumentTitle from 'react-document-title'
import './index.less'

Expand All @@ -18,7 +12,6 @@ import PasswordLogin from './passwordLogin'
const Login = ( { t } ) => {
const [loading, setLoading] = useState( false )
const navigate = useNavigate()
// const { t } = useTranslation()

const loginStart = () => {
setLoading( true )
Expand Down Expand Up @@ -58,4 +51,3 @@ const Login = ( { t } ) => {
}

export default withTranslation()( Login )
// export default connect( ( state ) => state.users )( Login )

0 comments on commit 45af5e1

Please sign in to comment.