Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gfashioin-fe
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
imtiny
gfashioin-fe
Commits
8d73c6b3
Commit
8d73c6b3
authored
May 09, 2020
by
imtiny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix warnings
parent
73f18366
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
userSlice.ts
src/app/slices/userSlice.ts
+1
-1
index.tsx
src/pages/Login/index.tsx
+2
-8
No files found.
src/app/slices/userSlice.ts
View file @
8d73c6b3
import
{
create
Action
,
create
Slice
,
PayloadAction
}
from
'@reduxjs/toolkit'
;
import
{
createSlice
,
PayloadAction
}
from
'@reduxjs/toolkit'
;
import
{
AppThunk
,
RootState
}
from
'../store'
;
interface
UserState
{
...
...
src/pages/Login/index.tsx
View file @
8d73c6b3
import
React
,
{
useEffect
}
from
'react'
;
import
'./index.css'
;
import
{
useField
,
Form
,
Form
ikProps
,
Formik
}
from
"formik"
;
import
{
useField
,
FormikProps
,
Formik
}
from
"formik"
;
import
*
as
yup
from
"yup"
;
import
{
useDispatch
,
useSelector
}
from
'react-redux'
;
...
...
@@ -11,7 +11,7 @@ import { Input } from '@material-ui/core';
import
{
InputLabel
}
from
'@material-ui/core'
;
const
MyTextField
=
({
label
,
...
props
}:
any
)
=>
{
const
[
field
,
meta
,
helpers
]
=
useField
(
props
);
const
[
field
,
meta
]
=
useField
(
props
);
return
(
<
div
>
<
InputLabel
className=
'input-label'
>
...
...
@@ -66,14 +66,8 @@ export default () => {
console
.
log
(
props
)
const
{
values
,
touched
,
errors
,
dirty
,
isSubmitting
,
handleChange
,
handleBlur
,
handleSubmit
,
handleReset
}
=
props
;
return
(
<
form
onSubmit=
{
handleSubmit
}
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment