forked from deriv-com/deriv-app
-
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 #39 from jim-deriv/Jim/74978/accordion-component-t…
…s-migration Jim/74978/accordion component ts migration
- Loading branch information
Showing
4 changed files
with
18 additions
and
13 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
2 changes: 1 addition & 1 deletion
2
...ponents/src/components/accordion/index.js → ...ponents/src/components/accordion/index.ts
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,4 +1,4 @@ | ||
import Accordion from './accordion.jsx'; | ||
import Accordion from './accordion'; | ||
import './accordion.scss'; | ||
|
||
export default Accordion; |
11 changes: 11 additions & 0 deletions
11
packages/components/src/components/types/accordion.types.ts
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,11 @@ | ||
export type TAccordionItem = Array<{ | ||
header: string; | ||
content: React.ReactNode; | ||
}>; | ||
|
||
export type TAccordionProps = { | ||
className?: string; | ||
icon_close?: string; | ||
icon_open?: string; | ||
list: TAccordionItem; | ||
}; |
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,4 @@ | ||
import { TIconsManifest, TIconProps } from './icons.types'; | ||
import { TAccordionProps, TAccordionItem } from './accordion.types'; | ||
|
||
export type { TIconsManifest, TIconProps }; | ||
export type { TIconsManifest, TIconProps, TAccordionProps, TAccordionItem }; |