-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better exporting of Flight Flagger components (#3)
* Better exporting of Flight Flagger components --------- Co-authored-by: jackson <Jackson Hyde>
- Loading branch information
1 parent
c1ce264
commit c146ad3
Showing
15 changed files
with
113 additions
and
909 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ dist | |
coverage | ||
storybook-static | ||
.jest-test-results.json | ||
.yarn |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
Empty file.
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
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
27 changes: 27 additions & 0 deletions
27
src/components/FlightFlagger/FlightFlaggerHighlight.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,27 @@ | ||
import { ComponentMeta, ComponentStory } from "@storybook/react"; | ||
import React from "react"; | ||
import { FlightHighlight as FlightHighlightComponent } from "./FlightFlaggerResults"; | ||
import { ThemeProvider, createTheme } from "@mui/material"; | ||
import ExampleFlights from "./ExampleFlights"; | ||
|
||
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export | ||
export default { | ||
title: "DRT Components/Flight Flagger", | ||
component: FlightHighlightComponent, | ||
} as ComponentMeta<typeof FlightHighlightComponent>; | ||
|
||
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args | ||
const defaultTheme = createTheme(); | ||
const Template: ComponentStory<typeof FlightHighlightComponent> = ( | ||
args: FlightHighlightComponent, | ||
) => ( | ||
<ThemeProvider theme={defaultTheme}> | ||
<FlightHighlightComponent {...args} /> | ||
</ThemeProvider> | ||
); | ||
|
||
export const FlightHighlight = Template.bind({}); | ||
// More on args: https://storybook.js.org/docs/react/writing-stories/args | ||
FlightHighlight.args = { | ||
text: 'Flight highlight text', | ||
}; |
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
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
export { default } from "./FlightFlagger"; | ||
export type {IFlightFlagger} from './FlightFlagger' | ||
|
||
export {FlightFlaggerFilters} from "./FlightFlaggerFilters"; | ||
export type {IFlightFlaggerFilters} from './FlightFlaggerFilters'; | ||
|
||
export {FlightFlaggerResults} from './FlightFlaggerResults'; | ||
export type {IFlightFlaggerResults} from './FlightFlaggerResults'; | ||
|
||
export {FlightHighlight} from './FlightFlaggerResults'; | ||
export type {IFlightHighlight} from './FlightFlaggerResults'; |
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 +1,2 @@ | ||
export { StatusTag } from "./StatusTags"; | ||
export type {IStatusTag} from './StatusTags'; |
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,2 +1,5 @@ | ||
export { default as FlightFlagger } from "./FlightFlagger"; | ||
export type { IFlightFlagger } from "./FlightFlagger"; | ||
|
||
export { StatusTag } from "./StatusTags"; | ||
export type { IStatusTag } from "./StatusTags"; |