-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ability to deactivate an active detour (#2721)
- Loading branch information
1 parent
061791b
commit a9a862e
Showing
5 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
import React from "react" | ||
import { Panel } from "./diversionPage" | ||
import { Button } from "react-bootstrap" | ||
|
||
export const ActiveDetourPanel = () => ( | ||
export const ActiveDetourPanel = ({ | ||
onDeactivateDetour, | ||
}: { | ||
onDeactivateDetour: () => void | ||
}) => ( | ||
<Panel as="article"> | ||
<Panel.Header className=""> | ||
<h1 className="c-diversion-panel__h1 my-3">Active Detour</h1> | ||
</Panel.Header> | ||
|
||
<Panel.Body className="d-flex flex-column"></Panel.Body> | ||
<Panel.Body className="d-flex flex-column"> | ||
<Panel.Body.Footer> | ||
<Button | ||
className="m-3 flex-grow-1" | ||
variant="missed-stop" | ||
onClick={onDeactivateDetour} | ||
> | ||
Deactivate Detour | ||
</Button> | ||
</Panel.Body.Footer> | ||
</Panel.Body> | ||
</Panel> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react" | ||
import { Panel } from "./diversionPage" | ||
|
||
export const PastDetourPanel = () => ( | ||
<Panel as="article"> | ||
<Panel.Header className=""> | ||
<h1 className="c-diversion-panel__h1 my-3">Past Detour</h1> | ||
</Panel.Header> | ||
|
||
<Panel.Body className="d-flex flex-column"></Panel.Body> | ||
</Panel> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters