Skip to content

Commit

Permalink
Fix routes (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
daltonfury42 authored Apr 24, 2020
1 parent 80da2a5 commit 5f2c556
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
6 changes: 5 additions & 1 deletion simplq/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"firebase.json",
"**/.*",
"**/node_modules/**"
]
],
"rewrites": [{
"source": "**",
"destination": "/index.html"
}]
}
}
6 changes: 3 additions & 3 deletions simplq/src/components/Routes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import Admin from "./page/admin/index";
export default () => {
return <Router>
<Route path="/" exact component={CreateQueue} />
<Route path="/queue/:queueId/admin" component={Admin} />
<Route path="/join" component={JoinQueue} />
<Route path="/queue-status" component={QueueStatus} />
<Route path="/admin/:queueId" exact component={Admin} />
<Route path="/:queueId" exact component={JoinQueue} />
<Route path="/status/:queueId/:tokenId" exact component={QueueStatus} />
</Router>
}
2 changes: 1 addition & 1 deletion simplq/src/components/page/CreateQueue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class CreateQueue extends React.Component {

handleClick(name) {
QueueService.createQueue(name).then(
queueId => this.props.history.push("/queue/" + queueId + "/admin")
queueId => this.props.history.push("/admin/" + queueId)
)

}
Expand Down
2 changes: 1 addition & 1 deletion simplq/src/components/page/QueueStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CentralSection from "../CentralSection";
function QueueStatus(props) {
var aheadCount = 10;

return <CentralSection heading="Your Status">
return <CentralSection heading="Sit Tight!">
<Typography variant="h5" align="center" color="textSecondary" component="p">
There are {aheadCount} people ahead of you. Thanks for waiting!
</Typography>
Expand Down

0 comments on commit 5f2c556

Please sign in to comment.