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
dd9350c2
Verified
Commit
dd9350c2
authored
3 years ago
by
Defendi Alberto
Browse files
Options
Downloads
Patches
Plain Diff
Remove style and redundant theme import.
parent
ad818728
No related branches found
No related tags found
2 merge requests
!56
Refined auth flow and new website pages.
,
!55
Refactoring to reservation page.
Pipeline
#12493
passed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/Dashboard/ReservationPage/ReservationPage.tsx
+13
-77
13 additions, 77 deletions
src/components/Dashboard/ReservationPage/ReservationPage.tsx
with
13 additions
and
77 deletions
src/components/Dashboard/ReservationPage/ReservationPage.tsx
+
13
−
77
View file @
dd9350c2
import
React
,
{
FC
}
from
'
react
'
;
import
{
makeStyles
}
from
'
@material-ui/core/styles
'
;
import
{
CssBaseline
,
Grid
,
Typography
,
Hidden
,
createMuiTheme
,
responsiveFontSizes
,
MuiThemeProvider
,
Dialog
,
DialogActions
,
DialogContent
,
DialogContentText
,
DialogTitle
,
TextField
,
Button
,
}
from
'
@material-ui/core
'
;
import
AddIcon
from
'
@material-ui/icons/Add
'
;
import
Fab
from
'
@material-ui/core/Fab
'
;
import
{
NavBar
}
from
'
components/Dashboard/HomePage/NavBar
'
;
import
{
Reservation
}
from
'
components/Dashboard/ReservationPage/Reservation/Reservation
'
;
import
{
useReservations
}
from
'
hooks/useReservations
'
;
import
{
ReservationProps
}
from
'
components/Dashboard/ReservationPage/Reservation/ReservationProps
'
;
import
{
SubmitHandler
,
useForm
}
from
'
react-hook-form
'
;
import
{
InputField
}
from
'
components/Auth/InputField/InputField
'
;
let
themeResp
=
createMuiTheme
();
themeResp
=
responsiveFontSizes
(
themeResp
);
const
useStyles
=
makeStyles
(()
=>
({
root
:
{
minHeight
:
'
36vh
'
,
backgroundImage
:
`url(
${
'
/assets/bg7.png
'
}
)`
,
backgroundRepeat
:
'
no-repeat
'
,
backgroundSize
:
'
cover
'
,
},
rightAlign
:
{
marginLeft
:
'
auto
'
,
},
whiteText
:
{
color
:
'
white
'
,
},
imageIcon
:
{
maxHeight
:
'
50%
'
,
},
paddingBottom
:
{
paddingBottom
:
'
65px
'
,
},
paddingTop
:
{
paddingTop
:
'
65px
'
,
},
bodyIcon
:
{
fontSize
:
'
90px
'
,
paddingBottom
:
'
10px
'
,
paddingTop
:
'
10px
'
,
},
contIcon
:
{
width
:
'
100%
'
,
left
:
'
0
'
,
right
:
'
0
'
,
},
noShadow
:
{
border
:
'
none
'
,
boxShadow
:
'
none
'
,
backgroundColor
:
'
transparent
'
,
},
extendedIcon
:
{
fontSize
:
'
50px
'
,
},
fab
:
{
margin
:
'
1.5em
'
,
bottom
:
'
0
'
,
right
:
'
0
'
,
position
:
'
fixed
'
,
fontSize
:
'
2em
'
,
padding
:
'
1.5em
'
,
},
}));
import
{
useStyles
}
from
'
./ReservationPage.style
'
;
export
const
ReservationPage
:
FC
=
()
=>
{
const
classes
=
useStyles
();
...
...
@@ -105,8 +45,6 @@ export const ReservationPage: FC = () => {
<
div
data-testid
=
"Reservation"
>
<
Grid
container
direction
=
"column"
className
=
{
classes
.
paddingBottom
}
>
<
div
className
=
{
classes
.
root
}
>
<
CssBaseline
/>
<
Grid
item
>
<
NavBar
/>
</
Grid
>
...
...
@@ -166,22 +104,20 @@ export const ReservationPage: FC = () => {
</
form
>
</
Dialog
>
<
MuiThemeProvider
theme
=
{
themeResp
}
>
<
Grid
item
container
className
=
{
classes
.
paddingBottom
}
>
<
Grid
item
xs
=
{
1
}
md
=
{
2
}
lg
=
{
2
}
/>
<
Grid
item
container
className
=
{
classes
.
paddingBottom
}
>
<
Grid
item
xs
=
{
1
}
md
=
{
2
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
10
}
md
=
{
6
}
lg
=
{
4
}
>
<
Typography
variant
=
"h2"
className
=
{
classes
.
whiteText
}
>
Plan Here Your
</
Typography
>
<
Typography
variant
=
"h1"
className
=
{
classes
.
whiteText
}
>
RESERVATIONS
</
Typography
>
</
Grid
>
<
Grid
item
xs
=
{
1
}
/>
<
Grid
item
xs
=
{
10
}
md
=
{
6
}
lg
=
{
4
}
>
<
Typography
variant
=
"h2"
className
=
{
classes
.
whiteText
}
>
Plan Here Your
</
Typography
>
<
Typography
variant
=
"h1"
className
=
{
classes
.
whiteText
}
>
RESERVATIONS
</
Typography
>
</
Grid
>
</
MuiThemeProvider
>
<
Grid
item
xs
=
{
1
}
/>
</
Grid
>
</
div
>
<
Fab
...
...
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