Skip to content

Commit 802d364

Browse files
feat: add new style for call components
1 parent ab5d7ef commit 802d364

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed
Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
1-
import {
2-
Button,
3-
Dialog,
4-
DialogContent,
5-
DialogHeader,
6-
DialogTrigger,
7-
Text,
8-
} from "@/packages/ui";
1+
import { Button, Dialog, Text } from "@/packages/ui";
92

103
export default function DialogStyleDefault() {
114
return (
125
<Dialog>
13-
<DialogTrigger asChild>
6+
<Dialog.Trigger asChild>
147
<Button>Open Dialog</Button>
15-
</DialogTrigger>
16-
<DialogContent>
17-
<DialogHeader>
8+
</Dialog.Trigger>
9+
<Dialog.Content>
10+
<Dialog.Header>
1811
<Text as="h5">Confirm your action?</Text>
19-
</DialogHeader>
12+
</Dialog.Header>
2013
<section className="flex flex-col gap-4 p-4">
2114
<section className="text-xl">
2215
<p>Are you sure you want to delete this item?</p>
2316
<p>This action cannout be undone.</p>
2417
</section>
2518
<section className="flex w-full justify-end">
26-
<DialogTrigger asChild>
19+
<Dialog.Trigger asChild>
2720
<Button>Confirm</Button>
28-
</DialogTrigger>
21+
</Dialog.Trigger>
2922
</section>
3023
</section>
31-
</DialogContent>
24+
</Dialog.Content>
3225
</Dialog>
3326
);
3427
}

0 commit comments

Comments
 (0)