diff --git a/fe/app/_components/burn-dialog.tsx b/fe/app/_components/burn-dialog.tsx
index 670eab3..43924d0 100644
--- a/fe/app/_components/burn-dialog.tsx
+++ b/fe/app/_components/burn-dialog.tsx
@@ -3,6 +3,7 @@
import { LoaderIcon } from "lucide-react";
import Image from "next/image";
import type { ComponentProps, FC, PropsWithChildren } from "react";
+import { useAccount } from "wagmi";
import { Button } from "@/components/ui/button";
import {
Dialog,
@@ -22,6 +23,8 @@ type Props = ComponentProps & {
export const BurnDialog: FC> = (props) => {
const { tokenId: tokenIdToBurn, tokenBalance, ...rest } = props;
+ const { address } = useAccount();
+
const { burnCall, isPending, isConfirming } = useBurn({
tokenIdToBurn,
});
@@ -31,7 +34,7 @@ export const BurnDialog: FC> = (props) => {
diff --git a/fe/app/page.tsx b/fe/app/page.tsx
index 0d82398..41bceb9 100644
--- a/fe/app/page.tsx
+++ b/fe/app/page.tsx
@@ -11,7 +11,7 @@ export default function Home() {
-
+
diff --git a/fe/components/ui/dialog.tsx b/fe/components/ui/dialog.tsx
index d9ccec9..41f4ae4 100644
--- a/fe/components/ui/dialog.tsx
+++ b/fe/components/ui/dialog.tsx
@@ -1,143 +1,143 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as DialogPrimitive from "@radix-ui/react-dialog"
-import { XIcon } from "lucide-react"
+import * as DialogPrimitive from "@radix-ui/react-dialog";
+import { XIcon } from "lucide-react";
+import type * as React from "react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
function Dialog({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function DialogTrigger({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function DialogPortal({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function DialogClose({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function DialogOverlay({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function DialogContent({
- className,
- children,
- showCloseButton = true,
- ...props
+ className,
+ children,
+ showCloseButton = true,
+ ...props
}: React.ComponentProps & {
- showCloseButton?: boolean
+ showCloseButton?: boolean;
}) {
- return (
-
-
-
- {children}
- {showCloseButton && (
-
-
- Close
-
- )}
-
-
- )
+ return (
+
+
+
+ {children}
+ {showCloseButton && (
+
+
+ Close
+
+ )}
+
+
+ );
}
function DialogHeader({ className, ...props }: React.ComponentProps<"div">) {
- return (
-
- )
+ return (
+
+ );
}
function DialogFooter({ className, ...props }: React.ComponentProps<"div">) {
- return (
-
- )
+ return (
+
+ );
}
function DialogTitle({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function DialogDescription({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
export {
- Dialog,
- DialogClose,
- DialogContent,
- DialogDescription,
- DialogFooter,
- DialogHeader,
- DialogOverlay,
- DialogPortal,
- DialogTitle,
- DialogTrigger,
-}
+ Dialog,
+ DialogClose,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogOverlay,
+ DialogPortal,
+ DialogTitle,
+ DialogTrigger,
+};
diff --git a/fe/components/ui/dropdown-menu.tsx b/fe/components/ui/dropdown-menu.tsx
index bbe6fb0..129ec40 100644
--- a/fe/components/ui/dropdown-menu.tsx
+++ b/fe/components/ui/dropdown-menu.tsx
@@ -1,257 +1,257 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
-import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
+import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
+import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
+import type * as React from "react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
function DropdownMenu({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function DropdownMenuPortal({
- ...props
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuTrigger({
- ...props
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuContent({
- className,
- sideOffset = 4,
- ...props
+ className,
+ sideOffset = 4,
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
- )
+ return (
+
+
+
+ );
}
function DropdownMenuGroup({
- ...props
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuItem({
- className,
- inset,
- variant = "default",
- ...props
+ className,
+ inset,
+ variant = "default",
+ ...props
}: React.ComponentProps & {
- inset?: boolean
- variant?: "default" | "destructive"
+ inset?: boolean;
+ variant?: "default" | "destructive";
}) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuCheckboxItem({
- className,
- children,
- checked,
- ...props
+ className,
+ children,
+ checked,
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
-
-
-
- {children}
-
- )
+ return (
+
+
+
+
+
+
+ {children}
+
+ );
}
function DropdownMenuRadioGroup({
- ...props
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuRadioItem({
- className,
- children,
- ...props
+ className,
+ children,
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
-
-
-
- {children}
-
- )
+ return (
+
+
+
+
+
+
+ {children}
+
+ );
}
function DropdownMenuLabel({
- className,
- inset,
- ...props
+ className,
+ inset,
+ ...props
}: React.ComponentProps & {
- inset?: boolean
+ inset?: boolean;
}) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuSeparator({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuShortcut({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps<"span">) {
- return (
-
- )
+ return (
+
+ );
}
function DropdownMenuSub({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function DropdownMenuSubTrigger({
- className,
- inset,
- children,
- ...props
+ className,
+ inset,
+ children,
+ ...props
}: React.ComponentProps & {
- inset?: boolean
+ inset?: boolean;
}) {
- return (
-
- {children}
-
-
- )
+ return (
+
+ {children}
+
+
+ );
}
function DropdownMenuSubContent({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
export {
- DropdownMenu,
- DropdownMenuPortal,
- DropdownMenuTrigger,
- DropdownMenuContent,
- DropdownMenuGroup,
- DropdownMenuLabel,
- DropdownMenuItem,
- DropdownMenuCheckboxItem,
- DropdownMenuRadioGroup,
- DropdownMenuRadioItem,
- DropdownMenuSeparator,
- DropdownMenuShortcut,
- DropdownMenuSub,
- DropdownMenuSubTrigger,
- DropdownMenuSubContent,
-}
+ DropdownMenu,
+ DropdownMenuPortal,
+ DropdownMenuTrigger,
+ DropdownMenuContent,
+ DropdownMenuGroup,
+ DropdownMenuLabel,
+ DropdownMenuItem,
+ DropdownMenuCheckboxItem,
+ DropdownMenuRadioGroup,
+ DropdownMenuRadioItem,
+ DropdownMenuSeparator,
+ DropdownMenuShortcut,
+ DropdownMenuSub,
+ DropdownMenuSubTrigger,
+ DropdownMenuSubContent,
+};
diff --git a/fe/components/ui/form.tsx b/fe/components/ui/form.tsx
index 524b986..22c13ee 100644
--- a/fe/components/ui/form.tsx
+++ b/fe/components/ui/form.tsx
@@ -1,167 +1,167 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as LabelPrimitive from "@radix-ui/react-label"
-import { Slot } from "@radix-ui/react-slot"
+import type * as LabelPrimitive from "@radix-ui/react-label";
+import { Slot } from "@radix-ui/react-slot";
+import * as React from "react";
import {
- Controller,
- FormProvider,
- useFormContext,
- useFormState,
- type ControllerProps,
- type FieldPath,
- type FieldValues,
-} from "react-hook-form"
-
-import { cn } from "@/lib/utils"
-import { Label } from "@/components/ui/label"
-
-const Form = FormProvider
+ Controller,
+ type ControllerProps,
+ type FieldPath,
+ type FieldValues,
+ FormProvider,
+ useFormContext,
+ useFormState,
+} from "react-hook-form";
+import { Label } from "@/components/ui/label";
+import { cn } from "@/lib/utils";
+
+const Form = FormProvider;
type FormFieldContextValue<
- TFieldValues extends FieldValues = FieldValues,
- TName extends FieldPath = FieldPath,
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath = FieldPath,
> = {
- name: TName
-}
+ name: TName;
+};
const FormFieldContext = React.createContext(
- {} as FormFieldContextValue
-)
+ {} as FormFieldContextValue,
+);
const FormField = <
- TFieldValues extends FieldValues = FieldValues,
- TName extends FieldPath = FieldPath,
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath = FieldPath,
>({
- ...props
+ ...props
}: ControllerProps) => {
- return (
-
-
-
- )
-}
+ return (
+
+
+
+ );
+};
const useFormField = () => {
- const fieldContext = React.useContext(FormFieldContext)
- const itemContext = React.useContext(FormItemContext)
- const { getFieldState } = useFormContext()
- const formState = useFormState({ name: fieldContext.name })
- const fieldState = getFieldState(fieldContext.name, formState)
-
- if (!fieldContext) {
- throw new Error("useFormField should be used within ")
- }
-
- const { id } = itemContext
-
- return {
- id,
- name: fieldContext.name,
- formItemId: `${id}-form-item`,
- formDescriptionId: `${id}-form-item-description`,
- formMessageId: `${id}-form-item-message`,
- ...fieldState,
- }
-}
+ const fieldContext = React.useContext(FormFieldContext);
+ const itemContext = React.useContext(FormItemContext);
+ const { getFieldState } = useFormContext();
+ const formState = useFormState({ name: fieldContext.name });
+ const fieldState = getFieldState(fieldContext.name, formState);
+
+ if (!fieldContext) {
+ throw new Error("useFormField should be used within ");
+ }
+
+ const { id } = itemContext;
+
+ return {
+ id,
+ name: fieldContext.name,
+ formItemId: `${id}-form-item`,
+ formDescriptionId: `${id}-form-item-description`,
+ formMessageId: `${id}-form-item-message`,
+ ...fieldState,
+ };
+};
type FormItemContextValue = {
- id: string
-}
+ id: string;
+};
const FormItemContext = React.createContext(
- {} as FormItemContextValue
-)
+ {} as FormItemContextValue,
+);
function FormItem({ className, ...props }: React.ComponentProps<"div">) {
- const id = React.useId()
-
- return (
-
-
-
- )
+ const id = React.useId();
+
+ return (
+
+
+
+ );
}
function FormLabel({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- const { error, formItemId } = useFormField()
-
- return (
-
- )
+ const { error, formItemId } = useFormField();
+
+ return (
+
+ );
}
function FormControl({ ...props }: React.ComponentProps) {
- const { error, formItemId, formDescriptionId, formMessageId } = useFormField()
-
- return (
-
- )
+ const { error, formItemId, formDescriptionId, formMessageId } =
+ useFormField();
+
+ return (
+
+ );
}
function FormDescription({ className, ...props }: React.ComponentProps<"p">) {
- const { formDescriptionId } = useFormField()
-
- return (
-
- )
+ const { formDescriptionId } = useFormField();
+
+ return (
+
+ );
}
function FormMessage({ className, ...props }: React.ComponentProps<"p">) {
- const { error, formMessageId } = useFormField()
- const body = error ? String(error?.message ?? "") : props.children
-
- if (!body) {
- return null
- }
-
- return (
-
- {body}
-
- )
+ const { error, formMessageId } = useFormField();
+ const body = error ? String(error?.message ?? "") : props.children;
+
+ if (!body) {
+ return null;
+ }
+
+ return (
+
+ {body}
+
+ );
}
export {
- useFormField,
- Form,
- FormItem,
- FormLabel,
- FormControl,
- FormDescription,
- FormMessage,
- FormField,
-}
+ useFormField,
+ Form,
+ FormItem,
+ FormLabel,
+ FormControl,
+ FormDescription,
+ FormMessage,
+ FormField,
+};
diff --git a/fe/components/ui/label.tsx b/fe/components/ui/label.tsx
index fb5fbc3..be983a3 100644
--- a/fe/components/ui/label.tsx
+++ b/fe/components/ui/label.tsx
@@ -1,24 +1,24 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as LabelPrimitive from "@radix-ui/react-label"
+import * as LabelPrimitive from "@radix-ui/react-label";
+import type * as React from "react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
function Label({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
-export { Label }
+export { Label };
diff --git a/fe/components/ui/select.tsx b/fe/components/ui/select.tsx
index 25e5439..d5b05ca 100644
--- a/fe/components/ui/select.tsx
+++ b/fe/components/ui/select.tsx
@@ -1,187 +1,187 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as SelectPrimitive from "@radix-ui/react-select"
-import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
+import * as SelectPrimitive from "@radix-ui/react-select";
+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
+import type * as React from "react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
function Select({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function SelectGroup({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function SelectValue({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function SelectTrigger({
- className,
- size = "default",
- children,
- ...props
+ className,
+ size = "default",
+ children,
+ ...props
}: React.ComponentProps & {
- size?: "sm" | "default"
+ size?: "sm" | "default";
}) {
- return (
-
- {children}
-
-
-
-
- )
+ return (
+
+ {children}
+
+
+
+
+ );
}
function SelectContent({
- className,
- children,
- position = "popper",
- align = "center",
- ...props
+ className,
+ children,
+ position = "popper",
+ align = "center",
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
-
- {children}
-
-
-
-
- )
+ return (
+
+
+
+
+ {children}
+
+
+
+
+ );
}
function SelectLabel({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function SelectItem({
- className,
- children,
- ...props
+ className,
+ children,
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
-
-
-
- {children}
-
- )
+ return (
+
+
+
+
+
+
+ {children}
+
+ );
}
function SelectSeparator({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function SelectScrollUpButton({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
- )
+ return (
+
+
+
+ );
}
function SelectScrollDownButton({
- className,
- ...props
+ className,
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
- )
+ return (
+
+
+
+ );
}
export {
- Select,
- SelectContent,
- SelectGroup,
- SelectItem,
- SelectLabel,
- SelectScrollDownButton,
- SelectScrollUpButton,
- SelectSeparator,
- SelectTrigger,
- SelectValue,
-}
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectLabel,
+ SelectScrollDownButton,
+ SelectScrollUpButton,
+ SelectSeparator,
+ SelectTrigger,
+ SelectValue,
+};
diff --git a/fe/components/ui/separator.tsx b/fe/components/ui/separator.tsx
index 275381c..50f035f 100644
--- a/fe/components/ui/separator.tsx
+++ b/fe/components/ui/separator.tsx
@@ -1,28 +1,28 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as SeparatorPrimitive from "@radix-ui/react-separator"
+import * as SeparatorPrimitive from "@radix-ui/react-separator";
+import type * as React from "react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
function Separator({
- className,
- orientation = "horizontal",
- decorative = true,
- ...props
+ className,
+ orientation = "horizontal",
+ decorative = true,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
-export { Separator }
+export { Separator };
diff --git a/fe/components/ui/tooltip.tsx b/fe/components/ui/tooltip.tsx
index a4e90d4..1018c00 100644
--- a/fe/components/ui/tooltip.tsx
+++ b/fe/components/ui/tooltip.tsx
@@ -1,61 +1,61 @@
-"use client"
+"use client";
-import * as React from "react"
-import * as TooltipPrimitive from "@radix-ui/react-tooltip"
+import * as TooltipPrimitive from "@radix-ui/react-tooltip";
+import type * as React from "react";
-import { cn } from "@/lib/utils"
+import { cn } from "@/lib/utils";
function TooltipProvider({
- delayDuration = 0,
- ...props
+ delayDuration = 0,
+ ...props
}: React.ComponentProps) {
- return (
-
- )
+ return (
+
+ );
}
function Tooltip({
- ...props
+ ...props
}: React.ComponentProps) {
- return (
-
-
-
- )
+ return (
+
+
+
+ );
}
function TooltipTrigger({
- ...props
+ ...props
}: React.ComponentProps) {
- return
+ return ;
}
function TooltipContent({
- className,
- sideOffset = 0,
- children,
- ...props
+ className,
+ sideOffset = 0,
+ children,
+ ...props
}: React.ComponentProps) {
- return (
-
-
- {children}
-
-
-
- )
+ return (
+
+
+ {children}
+
+
+
+ );
}
-export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };