File tree Expand file tree Collapse file tree 1 file changed +9
-16
lines changed Expand file tree Collapse file tree 1 file changed +9
-16
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" ;
1+ import { Button , Dialog , Text } from "@/packages/ui" ;
92
103export 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}
You can’t perform that action at this time.
0 commit comments