-
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 stubbed "Active Detour" detour panel (#2715)
- Loading branch information
1 parent
16aa743
commit 615e7c8
Showing
4 changed files
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import React from "react" | ||
import { Panel } from "./diversionPage" | ||
|
||
export const ActiveDetourPanel = () => ( | ||
<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> | ||
) |
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
28 changes: 28 additions & 0 deletions
28
assets/stories/skate-components/detours/activeDetourPanel.stories.tsx
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,28 @@ | ||
import type { Meta, StoryObj } from "@storybook/react" | ||
|
||
import React from "react" | ||
import { ActiveDetourPanel } from "../../../src/components/detours/activeDetourPanel" | ||
|
||
const meta = { | ||
component: ActiveDetourPanel, | ||
parameters: { | ||
layout: "fullscreen", | ||
stretch: true, | ||
}, | ||
args: {}, | ||
// The bootstrap CSS reset is supposed to set box-sizing: border-box by | ||
// default, we should be able to remove this after that is added | ||
decorators: [ | ||
(StoryFn) => ( | ||
<div className="border-box inherit-box h-100"> | ||
<StoryFn /> | ||
</div> | ||
), | ||
], | ||
} satisfies Meta<typeof ActiveDetourPanel> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const Story: Story = {} |
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