We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5a35c6 commit 164ed88Copy full SHA for 164ed88
src/frontend/apps/impress/src/components/SideModal.tsx
@@ -22,15 +22,12 @@ const SideModalStyle = createGlobalStyle<SideModalStyleProps>`
22
23
type SideModalType = Omit<ComponentPropsWithRef<typeof Modal>, 'size'>;
24
25
-interface SideModalProps extends SideModalType {
26
- side: 'left' | 'right';
27
- width: string;
28
-}
+type SideModalProps = SideModalType & Partial<SideModalStyleProps>;
29
30
export const SideModal = ({
31
children,
32
- side,
33
- width,
+ side = 'right',
+ width = '35vw',
34
...modalProps
35
}: PropsWithChildren<SideModalProps>) => {
36
return (
0 commit comments