-
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.
Merge pull request #27 from UKHomeOffice/drt-1444-flight-flagger-country
Created Country type for nationalities
- Loading branch information
Showing
5 changed files
with
114 additions
and
102 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ coverage | |
storybook-static | ||
.jest-test-results.json | ||
.yarn | ||
.idea |
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,28 +1,31 @@ | ||
import { SearchFilterPayload } from "./FlightFlaggerFilters"; | ||
import {SearchFilterPayload} from "./FlightFlaggerFilters"; | ||
import ExampleFlights from "./ExampleFlights"; | ||
|
||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import type {Meta, StoryObj} from '@storybook/react'; | ||
|
||
import { default as FlightFlaggerComponent } from "./"; | ||
import {default as FlightFlaggerComponent} from "./"; | ||
|
||
const meta: Meta<typeof FlightFlaggerComponent> = { | ||
title: "DRT Components/Flight Flagger", | ||
component: FlightFlaggerComponent, | ||
title: "DRT Components/Flight Flagger", | ||
component: FlightFlaggerComponent, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof FlightFlaggerComponent>; | ||
|
||
export const FlightFlagger: Story = { | ||
args: { | ||
nationalities: ["FRA", "GBR", "USA", "CHL"], | ||
ageGroups: ["0-9", "10-24", "25-39", "40-55", "55-69", "70+"], | ||
submitCallback: (searchFilters: SearchFilterPayload) => | ||
console.log(searchFilters), | ||
flights: ExampleFlights, | ||
isLoading: false, | ||
}, | ||
parameters: { | ||
jest: ["FlightFlagger.test.tsx"], | ||
} | ||
args: { | ||
nationalities: [{name: 'France', code: 'FRA'}, | ||
{name: 'Great Britain', code: 'GBR'}, | ||
{name: 'America', code: 'USA'}, | ||
{name: 'Chile', code: 'CHL'}], | ||
ageGroups: ["0-9", "10-24", "25-39", "40-55", "55-69", "70+"], | ||
submitCallback: (searchFilters: SearchFilterPayload) => | ||
console.log(searchFilters), | ||
flights: ExampleFlights, | ||
isLoading: false, | ||
}, | ||
parameters: { | ||
jest: ["FlightFlagger.test.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
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