File tree Expand file tree Collapse file tree
packages/ui-components/Common/Modal Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type { Meta as MetaObj , StoryObj } from '@storybook/react' ;
22
3- import ChangelogModal from '@node-core/ui-components/Common/Modal' ;
3+ import Modal from '@node-core/ui-components/Common/Modal' ;
44
5- type Story = StoryObj < typeof ChangelogModal > ;
6- type Meta = MetaObj < typeof ChangelogModal > ;
5+ type Story = StoryObj < typeof Modal > ;
6+ type Meta = MetaObj < typeof Modal > ;
77
88export const Default : Story = {
99 args : {
@@ -29,4 +29,4 @@ export const Default: Story = {
2929 } ,
3030} ;
3131
32- export default { component : ChangelogModal } as Meta ;
32+ export default { component : Modal } as Meta ;
Original file line number Diff line number Diff line change @@ -6,14 +6,14 @@ import type { FC, PropsWithChildren } from 'react';
66
77import styles from './index.module.css' ;
88
9- type ChangelogModalProps = PropsWithChildren < {
9+ type ModalProps = PropsWithChildren < {
1010 heading : string ;
1111 subheading : string ;
1212 open ?: boolean ;
1313 onOpenChange ?: ( open : boolean ) => void ;
1414} > ;
1515
16- const ChangelogModal : FC < ChangelogModalProps > = ( {
16+ const Modal : FC < ModalProps > = ( {
1717 heading,
1818 subheading,
1919 children,
@@ -43,4 +43,4 @@ const ChangelogModal: FC<ChangelogModalProps> = ({
4343 </ Dialog . Root >
4444) ;
4545
46- export default ChangelogModal ;
46+ export default Modal ;
You can’t perform that action at this time.
0 commit comments