Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
ViaResto-website
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aymeric Chaumont
ViaResto-website
Merge requests
!41
Collaborative
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Collaborative
collaborative
into
main
Overview
0
Commits
4
Pipelines
6
Changes
1
Merged
Collaborative
Antoine Gaudron-Desjardins
requested to merge
collaborative
into
main
Jul 19, 2022
Overview
0
Commits
4
Pipelines
6
Changes
1
0
0
Merge request reports
Viewing commit
7b28dd5b
Prev
Next
Show latest version
1 file
+
5
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
7b28dd5b
comment timer
· 7b28dd5b
Antoine Gaudron-Desjardins
authored
Jul 19, 2022
frontend/src/views/Restaurant.js
+
5
−
5
View file @ 7b28dd5b
Edit in single-file editor
Open in Web IDE
Show full file
import
React
,
{
useState
}
from
"
react
"
;
import
axios
from
"
axios
"
;
import
{
/*
Graph, WaitingTime,
*/
Comments
}
from
"
../components
"
;
import
{
Graph
,
WaitingTime
,
Comments
}
from
"
../components
"
;
import
"
../styles/restaurant.css
"
;
@@ -51,16 +51,16 @@ export default function RestaurantPage({ selection, lastMessage }) {
<
div
className
=
"
restaurant-container
"
>
<
Comments
place
=
{
selection
.
name
}
lastMessage
=
{
lastMessage
}
infos
/>
<
div
className
=
"
restaurant-container
"
id
=
"
restaurant-main-page
"
>
{
/*
<WaitingTime place={selection.name} lastMessage={lastMessage} />
<Graph place={selection.name} type="current" lastMessage={lastMessage} />
*/
}
<
button
<
WaitingTime
place
=
{
selection
.
name
}
lastMessage
=
{
lastMessage
}
/
>
<
Graph
place
=
{
selection
.
name
}
type
=
"
current
"
lastMessage
=
{
lastMessage
}
/
>
{
/*
<button
id={`restaurant-${started ? "end" : "start"}-button`}
onClick={started ? End : Start}
className={disabled ? "restaurant-button-disabled" : "restaurant-button-active"}
disabled={disabled}
>
{started ? "Fini !!" : "Départ !!"}
<
/button
>
</button>
*/
}
<
/div
>
<
Comments
place
=
{
selection
.
name
}
lastMessage
=
{
lastMessage
}
/
>
{
/*<Graph place={selection.name} type="avg" />*/
}
Loading