-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,42 @@ | ||
import { PrimaryButton as Button } from '@/components/ui/button' | ||
|
||
export function RefundButton() { | ||
return( | ||
<Button className="text-xs ml-4 transition:colors hover:text-secondary hover:bg-primary-foreground">Refund</Button> | ||
) | ||
|
||
import { | ||
Drawer, | ||
DrawerClose, | ||
DrawerContent, | ||
DrawerDescription, | ||
DrawerFooter, | ||
DrawerHeader, | ||
DrawerTitle, | ||
DrawerTrigger, | ||
} from '@/components/ui/drawer' | ||
|
||
} | ||
export function RefundButton() { | ||
return ( | ||
<Drawer> | ||
<DrawerTrigger asChild> | ||
<Button className="text-xs ml-4 transition:colors hover:text-secondary hover:bg-primary-foreground"> | ||
Refund | ||
</Button> | ||
</DrawerTrigger> | ||
<DrawerContent className="mx-auto w-full max-w-md"> | ||
<DrawerHeader> | ||
<DrawerTitle className="text-2xl text-center font-semibold"> | ||
Refund Customer Order | ||
</DrawerTitle> | ||
<DrawerDescription className="text-md text-center"> | ||
Revert On-Chain Transaction | ||
</DrawerDescription> | ||
</DrawerHeader> | ||
<DrawerFooter className="flex justify-end space-x-4"> | ||
<DrawerClose asChild> | ||
<Button variant="outline" className="px-4 py-2"> | ||
Cancel | ||
</Button> | ||
</DrawerClose> | ||
<Button className="px-4 py-2 bg-primary text-white">Refund</Button> | ||
</DrawerFooter> | ||
</DrawerContent> | ||
</Drawer> | ||
) | ||
} |