From e4dd82800b086c53de68b1a3ccfd0b2009852cdd Mon Sep 17 00:00:00 2001 From: josh-willis-arcadis <168561922+josh-willis-arcadis@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:54:32 -0500 Subject: [PATCH] chore(storybook): remove unneeded story file --- .../MetroModeSelector/AdvancedModeSettingsButton.story.tsx | 2 +- .../src/MetroModeSelector/MetroModeSelector.story.tsx | 2 +- .../{mockButtons.story.tsx => mockButtons.tsx} | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) rename packages/trip-form/src/MetroModeSelector/{mockButtons.story.tsx => mockButtons.tsx} (90%) diff --git a/packages/trip-form/src/MetroModeSelector/AdvancedModeSettingsButton.story.tsx b/packages/trip-form/src/MetroModeSelector/AdvancedModeSettingsButton.story.tsx index bd3a8b4c0..e47fb210e 100644 --- a/packages/trip-form/src/MetroModeSelector/AdvancedModeSettingsButton.story.tsx +++ b/packages/trip-form/src/MetroModeSelector/AdvancedModeSettingsButton.story.tsx @@ -12,7 +12,7 @@ import { defaultModeButtonDefinitions, getIcon, modeSettingDefinitionsWithDropdown -} from "./mockButtons.story"; +} from "./mockButtons"; const initialState = { enabledModeButtons: ["transit"], diff --git a/packages/trip-form/src/MetroModeSelector/MetroModeSelector.story.tsx b/packages/trip-form/src/MetroModeSelector/MetroModeSelector.story.tsx index d4003bd10..45a7f9802 100644 --- a/packages/trip-form/src/MetroModeSelector/MetroModeSelector.story.tsx +++ b/packages/trip-form/src/MetroModeSelector/MetroModeSelector.story.tsx @@ -12,7 +12,7 @@ import { modeSettingDefinitionsWithDropdown, getIcon, defaultModeButtonDefinitions -} from "./mockButtons.story"; +} from "./mockButtons"; const initialState = { enabledModeButtons: ["transit"], diff --git a/packages/trip-form/src/MetroModeSelector/mockButtons.story.tsx b/packages/trip-form/src/MetroModeSelector/mockButtons.tsx similarity index 90% rename from packages/trip-form/src/MetroModeSelector/mockButtons.story.tsx rename to packages/trip-form/src/MetroModeSelector/mockButtons.tsx index 2e146b6b3..67b7d6a83 100644 --- a/packages/trip-form/src/MetroModeSelector/mockButtons.story.tsx +++ b/packages/trip-form/src/MetroModeSelector/mockButtons.tsx @@ -7,10 +7,12 @@ import { TrainTram } from "@styled-icons/fa-solid"; +import { ModeButtonDefinition, ModeSetting } from "@opentripplanner/types"; + import { ClassicBike } from "@opentripplanner/icons/src/classic"; import React from "react"; -export const defaultModeButtonDefinitions = [ +export const defaultModeButtonDefinitions: ModeButtonDefinition[] = [ { Icon: Bus, iconName: "bus", @@ -41,9 +43,8 @@ export const defaultModeButtonDefinitions = [ modes: [{ mode: "CAR" }] } ]; - // TODO: add more test settings? -export const modeSettingDefinitionsWithDropdown = [ +export const modeSettingDefinitionsWithDropdown: ModeSetting[] = [ { applicableMode: "TRANSIT", default: "blue",