Skip to content

Commit 58b4a27

Browse files
author
Kubit
committed
Add deprecated messages on Modal component
1 parent 6de7ec1 commit 58b4a27

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/components/modal/modalControlled.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ const ModalBoundary = <V extends string | unknown>(
9090
);
9191
};
9292

93+
/**
94+
* @deprecated Try the new ModalV2 component
95+
*
96+
**/
9397
const ModalControlled = React.forwardRef(ModalBoundary) as <V extends string | unknown>(
9498
props: React.PropsWithChildren<IModalControlled<V>> & {
9599
ref?: React.ForwardedRef<HTMLDivElement> | undefined | null;

src/components/modal/modalUnControlled.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ const ModalUnControlledComponent = <V extends string | unknown>(
5757
);
5858
};
5959

60+
/**
61+
* @deprecated Try the new ModalV2 component
62+
*
63+
**/
6064
const ModalUnControlled = React.forwardRef(ModalUnControlledComponent) as <
6165
V extends string | unknown,
6266
>(

0 commit comments

Comments
 (0)