-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Footer, Heading, DonateSection, HeroBanner, and Modal compone…
…nts to Typescript (#1805)
- Loading branch information
1 parent
86554f1
commit 0fef2a4
Showing
22 changed files
with
192 additions
and
136 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
File renamed without changes.
File renamed without changes.
48 changes: 33 additions & 15 deletions
48
components/Heading/Heading.js → components/Heading/Heading.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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import Heading from '../Heading'; | ||
|
||
type HeadingStoryType = StoryObj<typeof Heading>; | ||
|
||
const meta: Meta<typeof Heading> = { | ||
title: 'Heading', | ||
component: Heading, | ||
args: { | ||
text: 'Heading text', | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default: HeadingStoryType = { | ||
render: args => <Heading {...args} />, | ||
}; |
File renamed without changes.
File renamed without changes.
44 changes: 29 additions & 15 deletions
44
components/HeroBanner/HeroBanner.js → components/HeroBanner/HeroBanner.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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Meta, StoryObj } from '@storybook/react'; | ||
import HeroBanner from '../HeroBanner'; | ||
|
||
type HeroBannerStoryType = StoryObj<typeof HeroBanner>; | ||
|
||
const meta: Meta<typeof HeroBanner> = { | ||
title: 'HeroBanner', | ||
component: HeroBanner, | ||
args: { | ||
title: 'Banner Title', | ||
}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Default: HeroBannerStoryType = { | ||
render: args => <HeroBanner {...args} />, | ||
}; |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.