aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/modal/modal.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-09-27 17:38:23 +0200
committerArmand Philippot <git@armandphilippot.com>2023-10-24 12:25:00 +0200
commit7255d25f6834a208c0ed44636356cc260f6ab6ba (patch)
tree88016a958190f766a3ac0ab4b77f4732e17502e8 /src/components/atoms/modal/modal.tsx
parentba793e043e4d8515b1a9ea490ee2c5f92b1fd6c2 (diff)
refactor(components): rewrite Heading component
* remove `alignment` and `withMargin` props (consumer should handle that) * move styles to Sass placeholders to avoid repeats with headings coming from WordPress * refactor some other components that depend on Heading to avoid ESlint errors
Diffstat (limited to 'src/components/atoms/modal/modal.tsx')
-rw-r--r--src/components/atoms/modal/modal.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/atoms/modal/modal.tsx b/src/components/atoms/modal/modal.tsx
index 78b4f6e..6f5506f 100644
--- a/src/components/atoms/modal/modal.tsx
+++ b/src/components/atoms/modal/modal.tsx
@@ -1,11 +1,11 @@
import {
- ForwardRefRenderFunction,
- HTMLAttributes,
- ReactElement,
- ReactNode,
+ type ForwardRefRenderFunction,
+ type HTMLAttributes,
+ type ReactElement,
+ type ReactNode,
forwardRef,
} from 'react';
-import { HeadingProps } from '../headings';
+import type { HeadingProps } from '../heading';
import styles from './modal.module.scss';
export type ModalProps = HTMLAttributes<HTMLDivElement> & {