Skip to content

Commit

Permalink
fix(@clayui/modal): LPD-41004 exposes size types in the modal's Table…
Browse files Browse the repository at this point in the history
… API
  • Loading branch information
matuzalemsteles committed Nov 6, 2024
1 parent 1a922a4 commit 74446b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/clay-modal/src/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ interface IProps
/**
* The size of element modal.
*/
size?: Size;
size?: 'full-screen' | 'lg' | 'sm';

/**
* Observer is Modal's communication system with `useModal`
Expand All @@ -74,7 +74,7 @@ const warningMessage = `You need to pass the 'observer' prop to ClayModal for ev
> <ClayModal observer={observer}>
> ...
> </ClayModal>
> );
> );
`;

let counter = 0;
Expand Down
4 changes: 2 additions & 2 deletions packages/clay-modal/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
* SPDX-License-Identifier: BSD-3-Clause
*/

export type Status = | 'danger' | 'info' | 'success' | 'warning';
export type Status = 'danger' | 'info' | 'success' | 'warning';

export type Size = | 'full-screen' | 'lg' | 'sm';
export type Size = 'full-screen' | 'lg' | 'sm';

export enum ObserverType {
Close = 0,
Expand Down

0 comments on commit 74446b6

Please sign in to comment.