Skip to content

Commit 3cf2104

Browse files
use right name
1 parent d5f829f commit 3cf2104

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/ui-components/Common/Modal/index.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import 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

88
export 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;

packages/ui-components/Common/Modal/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import type { FC, PropsWithChildren } from 'react';
66

77
import 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;

0 commit comments

Comments
 (0)