Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
red-giant
dashboard
Commits
80e069d2
Verified
Commit
80e069d2
authored
3 years ago
by
Defendi Alberto
Browse files
Options
Downloads
Patches
Plain Diff
Move styles to separate file
parent
1c31cd69
No related branches found
No related tags found
1 merge request
!39
is_authenticated, hide password and move styles
Pipeline
#11882
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/AuthUser/SignInForm/SignInForm.tsx
+1
-18
1 addition, 18 deletions
src/components/AuthUser/SignInForm/SignInForm.tsx
src/components/AuthUser/SignInForm/useStyles.ts
+18
-0
18 additions, 0 deletions
src/components/AuthUser/SignInForm/useStyles.ts
with
19 additions
and
18 deletions
src/components/AuthUser/SignInForm/SignInForm.tsx
+
1
−
18
View file @
80e069d2
import
React
,
{
FC
}
from
'
react
'
;
import
axios
from
'
axios
'
;
import
{
SubmitHandler
,
useForm
}
from
'
react-hook-form
'
;
import
{
createStyles
,
makeStyles
,
Theme
}
from
'
@material-ui/core/styles
'
;
import
{
Button
}
from
'
@material-ui/core
'
;
import
{
InputField
}
from
'
components/AuthUser/SignInForm/InputField/InputField
'
;
import
{
useHistory
}
from
'
react-router-dom
'
;
import
{
AuthRoutes
}
from
'
components/api/routes
'
;
const
useStyles
=
makeStyles
((
theme
:
Theme
)
=>
createStyles
({
root
:
{
'
& > *
'
:
{
margin
:
theme
.
spacing
(
0
),
},
},
form
:
{
width
:
'
100%
'
,
// Fix IE 11 issue.
marginTop
:
theme
.
spacing
(
1
),
},
submit
:
{
margin
:
theme
.
spacing
(
3
,
0
,
2
),
},
}),
);
import
{
useStyles
}
from
'
./useStyles
'
;
export
const
SignInForm
:
FC
=
()
=>
{
const
history
=
useHistory
();
...
...
This diff is collapsed.
Click to expand it.
src/components/AuthUser/SignInForm/useStyles.ts
0 → 100644
+
18
−
0
View file @
80e069d2
import
{
createStyles
,
makeStyles
,
Theme
}
from
'
@material-ui/core/styles
'
;
export
const
useStyles
=
makeStyles
((
theme
:
Theme
)
=>
createStyles
({
root
:
{
'
& > *
'
:
{
margin
:
theme
.
spacing
(
0
),
},
},
form
:
{
width
:
'
100%
'
,
// Fix IE 11 issue.
marginTop
:
theme
.
spacing
(
1
),
},
submit
:
{
margin
:
theme
.
spacing
(
3
,
0
,
2
),
},
}),
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment