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
cd47799b
Verified
Commit
cd47799b
authored
3 years ago
by
Defendi Alberto
Browse files
Options
Downloads
Patches
Plain Diff
Replace with new Reservation type.
parent
83f3d062
No related branches found
No related tags found
2 merge requests
!56
Refined auth flow and new website pages.
,
!54
Setup reservation for api compatibility.
Pipeline
#12487
passed
3 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/components/Dashboard/HomePage/HomePage.tsx
+1
-1
1 addition, 1 deletion
src/components/Dashboard/HomePage/HomePage.tsx
src/components/Dashboard/ReservationPage/ReservationPage.tsx
+5
-30
5 additions, 30 deletions
src/components/Dashboard/ReservationPage/ReservationPage.tsx
with
6 additions
and
31 deletions
src/components/Dashboard/HomePage/HomePage.tsx
+
1
−
1
View file @
cd47799b
...
@@ -109,7 +109,7 @@ export const HomePage: FC = () => {
...
@@ -109,7 +109,7 @@ export const HomePage: FC = () => {
<
Grid
item
container
style
=
{
{
paddingTop
:
'
20px
'
}
}
>
<
Grid
item
container
style
=
{
{
paddingTop
:
'
20px
'
}
}
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
10
}
lg
=
{
8
}
>
<
Grid
item
xs
=
{
10
}
lg
=
{
8
}
>
<
Reservation
/>
<
Reservation
departure
=
""
destination
=
""
time
=
""
date
=
""
/>
</
Grid
>
</
Grid
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
</
Grid
>
</
Grid
>
...
...
This diff is collapsed.
Click to expand it.
src/components/Dashboard/ReservationPage/ReservationPage.tsx
+
5
−
30
View file @
cd47799b
...
@@ -21,6 +21,7 @@ import Fab from '@material-ui/core/Fab';
...
@@ -21,6 +21,7 @@ import Fab from '@material-ui/core/Fab';
import
{
NavBar
}
from
'
components/Dashboard/HomePage/NavBar
'
;
import
{
NavBar
}
from
'
components/Dashboard/HomePage/NavBar
'
;
import
{
Reservation
}
from
'
components/Dashboard/ReservationPage/Reservation/Reservation
'
;
import
{
Reservation
}
from
'
components/Dashboard/ReservationPage/Reservation/Reservation
'
;
import
{
useReservations
}
from
'
hooks/useReservations
'
;
let
themeResp
=
createMuiTheme
();
let
themeResp
=
createMuiTheme
();
themeResp
=
responsiveFontSizes
(
themeResp
);
themeResp
=
responsiveFontSizes
(
themeResp
);
...
@@ -86,6 +87,8 @@ export const ReservationPage: FC = () => {
...
@@ -86,6 +87,8 @@ export const ReservationPage: FC = () => {
const
[
open
,
setOpen
]
=
React
.
useState
(
false
);
const
[
open
,
setOpen
]
=
React
.
useState
(
false
);
const
reservation
=
useReservations
();
const
handleClickOpen
=
():
void
=>
{
const
handleClickOpen
=
():
void
=>
{
setOpen
(
true
);
setOpen
(
true
);
};
};
...
@@ -210,29 +213,7 @@ export const ReservationPage: FC = () => {
...
@@ -210,29 +213,7 @@ export const ReservationPage: FC = () => {
<
Grid
item
xs
=
{
2
}
/>
<
Grid
item
xs
=
{
2
}
/>
</
Grid
>
</
Grid
>
<
Grid
item
container
style
=
{
{
paddingTop
:
'
20px
'
}
}
>
<
Reservation
departure
=
""
destination
=
""
time
=
""
date
=
""
/>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
10
}
lg
=
{
8
}
>
<
Reservation
/>
</
Grid
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
</
Grid
>
<
Grid
item
container
style
=
{
{
paddingTop
:
'
20px
'
}
}
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
10
}
lg
=
{
8
}
>
<
Reservation
/>
</
Grid
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
</
Grid
>
<
Grid
item
container
style
=
{
{
paddingTop
:
'
20px
'
}
}
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
10
}
lg
=
{
8
}
>
<
Reservation
/>
</
Grid
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
</
Grid
>
<
Grid
item
container
className
=
{
classes
.
paddingTop
}
>
<
Grid
item
container
className
=
{
classes
.
paddingTop
}
>
<
Grid
item
xs
=
{
2
}
/>
<
Grid
item
xs
=
{
2
}
/>
...
@@ -244,13 +225,7 @@ export const ReservationPage: FC = () => {
...
@@ -244,13 +225,7 @@ export const ReservationPage: FC = () => {
<
Grid
item
xs
=
{
2
}
/>
<
Grid
item
xs
=
{
2
}
/>
</
Grid
>
</
Grid
>
<
Grid
item
container
style
=
{
{
paddingTop
:
'
20px
'
}
}
>
<
Reservation
departure
=
""
destination
=
""
time
=
""
date
=
""
/>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
<
Grid
item
xs
=
{
10
}
lg
=
{
8
}
>
<
Reservation
/>
</
Grid
>
<
Grid
item
xs
=
{
1
}
lg
=
{
2
}
/>
</
Grid
>
</
Grid
>
</
Grid
>
</
div
>
</
div
>
);
);
...
...
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