Skip to content

Commit

Permalink
Revert "feat: Add connectionPoints and missedStops to the “Review Det…
Browse files Browse the repository at this point in the history
…our” pan…" (#2890)

This reverts commit 611f99c.
  • Loading branch information
hannahpurcell authored Oct 29, 2024
1 parent 3f78c18 commit 9dfb933
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 66 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,18 @@ import React, { PropsWithChildren } from "react"
import { Button, Form } from "react-bootstrap"
import * as BsIcons from "../../../helpers/bsIcons"
import { Panel } from "../diversionPage"
import {
ConnectionPoints,
CopyButton,
MissedStops,
} from "../detourPanelComponents"
import { Stop } from "../../../schedule"
import { CopyButton } from "../detourPanelComponents"

interface DetourFinishedPanelProps extends PropsWithChildren {
onNavigateBack: () => void
detourText: string
connectionPoints?: [string, string]
missedStops?: Stop[]
onChangeDetourText: (value: string) => void
onActivateDetour?: () => void
}

export const DetourFinishedPanel = ({
onNavigateBack,
detourText,
connectionPoints,
missedStops,
onChangeDetourText,
onActivateDetour,
children,
Expand Down Expand Up @@ -54,11 +45,6 @@ export const DetourFinishedPanel = ({
}}
data-fs-element="Detour Text"
/>

{connectionPoints && (
<ConnectionPoints connectionPoints={connectionPoints} />
)}
{missedStops && <MissedStops missedStops={missedStops} />}
</Panel.Body.ScrollArea>

<Panel.Body.Footer className="d-flex flex-column">
Expand Down
5 changes: 0 additions & 5 deletions assets/src/components/detours/diversionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,6 @@ export const DiversionPage = ({
<DetourFinishedPanel
onNavigateBack={editDetour}
detourText={textArea}
connectionPoints={[
connectionPoints?.start?.name ?? "N/A",
connectionPoints?.end?.name ?? "N/A",
]}
missedStops={missedStops}
onChangeDetourText={setTextArea}
onActivateDetour={
inTestGroup(TestGroups.DetoursList)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -460,29 +460,6 @@ exports[`Detours Page: Open a Detour renders detour details in an open drawer on
data-fs-element="Detour Text"
style="resize: none;"
/>
<section
class="pb-3"
>
<h2
class="c-diversion-panel__h2"
>
Connection Points
</h2>
<ul
class="list-group"
>
<div
class="list-group-item"
>
N/A
</div>
<div
class="list-group-item"
>
N/A
</div>
</ul>
</section>
</div>
<div
class="border-top d-flex mt-auto d-flex flex-column"
Expand Down Expand Up @@ -1262,29 +1239,6 @@ exports[`Detours Page: Open a Detour renders detour details modal to match mocke
data-fs-element="Detour Text"
style="resize: none;"
/>
<section
class="pb-3"
>
<h2
class="c-diversion-panel__h2"
>
Connection Points
</h2>
<ul
class="list-group"
>
<div
class="list-group-item"
>
N/A
</div>
<div
class="list-group-item"
>
N/A
</div>
</ul>
</section>
</div>
<div
class="border-top d-flex mt-auto d-flex flex-column"
Expand Down

0 comments on commit 9dfb933

Please sign in to comment.