Skip to content

Commit adf9abb

Browse files
feat: add new style for call components
1 parent eaa1bc4 commit adf9abb

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed
Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
1-
import {
2-
Button,
3-
Dialog,
4-
DialogContent,
5-
DialogHeader,
6-
DialogTrigger,
7-
Input,
8-
Text,
9-
} from "@/packages/ui";
10-
import { DialogFooter } from "@/packages/ui/Dialog/DialogFooter";
1+
import { Button, Dialog, Input, Text } from "@/packages/ui";
112

123
export default function DialogStyleWithForm() {
134
return (
145
<Dialog>
15-
<DialogTrigger asChild>
6+
<Dialog.Trigger asChild>
167
<Button>Open Form</Button>
17-
</DialogTrigger>
18-
<DialogContent size={"md"}>
19-
<DialogHeader position={"fixed"}>
8+
</Dialog.Trigger>
9+
<Dialog.Content size={"md"}>
10+
<Dialog.Header position={"fixed"}>
2011
<Text as="h5">Contact Us</Text>
21-
</DialogHeader>
12+
</Dialog.Header>
2213
<form className="flex flex-col gap-4">
2314
<div className="flex flex-col p-4 gap-4">
2415
<div className="flex-col gap-2">
@@ -34,13 +25,13 @@ export default function DialogStyleWithForm() {
3425
<Input placeholder="Type your name" required />
3526
</div>
3627
</div>
37-
<DialogFooter>
38-
<DialogTrigger asChild>
28+
<Dialog.Footer>
29+
<Dialog.Trigger asChild>
3930
<Button type="submit">Submit</Button>
40-
</DialogTrigger>
41-
</DialogFooter>
31+
</Dialog.Trigger>
32+
</Dialog.Footer>
4233
</form>
43-
</DialogContent>
34+
</Dialog.Content>
4435
</Dialog>
4536
);
4637
}

0 commit comments

Comments
 (0)