Skip to content

Commit

Permalink
🤦‍♂️
Browse files Browse the repository at this point in the history
  • Loading branch information
sebald committed Oct 22, 2024
1 parent f8caf6c commit de74699
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import type { DialogProps } from '@marigold/components';
import { Button, Dialog, Text } from '@marigold/components';

export default () => (
export default (props: DialogProps) => (
<Dialog.Trigger>
<Button variant="primary">Open me</Button>
<Dialog closeButton>
<Dialog closeButton {...props}>
<Dialog.Title level={3}>Information!</Dialog.Title>
<Dialog.Content>
<Text>This is a simple info Dialog.</Text>
Expand Down
1 change: 1 addition & 0 deletions packages/components/src/Dialog/Dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const _Dialog = ({
close: state?.close || (() => {}),
});
}

return (
<Dialog
{...props}
Expand Down

0 comments on commit de74699

Please sign in to comment.