File tree Expand file tree Collapse file tree 1 file changed +13
-21
lines changed Expand file tree Collapse file tree 1 file changed +13
-21
lines changed Original file line number Diff line number Diff line change 1- import {
2- Button ,
3- Dialog ,
4- DialogContent ,
5- DialogHeader ,
6- DialogTrigger ,
7- Text ,
8- } from "@/packages/ui" ;
9- import { DialogFooter } from "@/packages/ui/Dialog/DialogFooter" ;
1+ import { Button , Dialog , Text } from "@/packages/ui" ;
102
113export default function DialogStyleWithFooter ( ) {
124 return (
135 < Dialog >
14- < DialogTrigger asChild >
6+ < Dialog . Trigger asChild >
157 < Button > Open Dialog</ Button >
16- </ DialogTrigger >
17- < DialogContent >
18- < DialogHeader position = { "fixed" } asChild >
8+ </ Dialog . Trigger >
9+ < Dialog . Content >
10+ < Dialog . Header position = { "fixed" } asChild >
1911 < Text as = "h5" > Confirm your action?</ Text >
20- </ DialogHeader >
12+ </ Dialog . Header >
2113 < section className = "flex flex-col gap-4 p-4" >
2214 < section className = "text-xl" >
2315 < p > Are you sure you want to delete this item?</ p >
2416 < p > This action cannout be undone.</ p >
2517 </ section >
2618 </ section >
27- < DialogFooter >
28- < DialogTrigger asChild >
19+ < Dialog . Footer >
20+ < Dialog . Trigger asChild >
2921 < Button > Confirm</ Button >
30- </ DialogTrigger >
31- < DialogTrigger asChild >
22+ </ Dialog . Trigger >
23+ < Dialog . Trigger asChild >
3224 < Button variant = { "outline" } > Close</ Button >
33- </ DialogTrigger >
34- </ DialogFooter >
35- </ DialogContent >
25+ </ Dialog . Trigger >
26+ </ Dialog . Footer >
27+ </ Dialog . Content >
3628 </ Dialog >
3729 ) ;
3830}
You can’t perform that action at this time.
0 commit comments