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
Merge requests
!83
Fix driver
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix driver
fix-driver
into
dev
Overview
0
Commits
5
Pipelines
1
Changes
1
Merged
Defendi Alberto
requested to merge
fix-driver
into
dev
3 years ago
Overview
0
Commits
5
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Viewing commit
18e3e16b
Prev
Next
Show latest version
1 file
+
34
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
18e3e16b
Fix button not displaying.
· 18e3e16b
Defendi Alberto
authored
3 years ago
src/components/Dashboard/ReservationPage/ReservationPage.tsx
+
34
−
5
Options
import
React
,
{
FC
}
from
'
react
'
;
import
{
Page
}
from
'
components/Utils/Page/Page
'
;
import
AddIcon
from
'
@material-ui/icons/Add
'
;
import
Fab
from
'
@material-ui/core/Fab
'
;
import
{
reservationPageStyle
}
from
'
./ReservationPage.style
'
;
import
{
ReservationListSwitcher
}
from
'
./ReservationList/ReservationListSwitcher
'
;
import
{
ReservationDialog
}
from
'
./ReservationDialog
'
;
export
const
ReservationPage
:
FC
=
()
=>
{
const
classes
=
reservationPageStyle
();
const
[
isOpen
,
setIsOpen
]
=
React
.
useState
<
boolean
>
(
false
);
const
handleOpen
=
():
void
=>
{
setIsOpen
(
true
);
};
const
handleClose
=
():
void
=>
{
setIsOpen
(
false
);
};
return
(
<
Page
title
=
"Plan Here"
subtitle
=
"RESERVATIONS"
>
<
Fab
color
=
"primary"
size
=
"large"
className
=
{
classes
.
fab
}
onClick
=
{
handleOpen
}
aria-label
=
"Add New Reservations"
>
<
AddIcon
className
=
{
classes
.
extendedIcon
}
/>
</
Fab
>
export
const
ReservationPage
:
FC
=
()
=>
(
<
Page
title
=
"Plan Here"
subtitle
=
"RESERVATIONS"
>
<
ReservationListSwitcher
/
>
</
Page
>
)
;
<
ReservationDialog
isOpen
=
{
isOpen
}
handleClose
=
{
handleClose
}
/>
<
ReservationListSwitcher
/
>
<
/
Page
>
);
}
;
Loading