Skip to content

Commit 0cb564c

Browse files
committed
lint
1 parent 5100777 commit 0cb564c

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

apps/dashboard/src/@/api/universal-bridge/developer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export async function deleteWebhook(props: {
9797
return;
9898
}
9999

100-
export type PaymentLink = {
100+
type PaymentLink = {
101101
id: string;
102102
link: string;
103103
title: string;

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/links/components/CreatePaymentLinkButton.client.tsx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -106,34 +106,34 @@ export function CreatePaymentLinkButton(
106106
toast.error(parseErrorToMessage(err), { duration: 5000 });
107107
},
108108
});
109-
const uploadMutation = useMutation({
110-
mutationFn: async (file: File) => {
111-
const uploadClient = createThirdwebClient({
112-
clientId: "f958464759859da7a1c6f9d905c90a43", //7ae789153cf9ecde8f35649f2d8a4333", // Special client ID for uploads only on thirdweb.com
113-
});
114-
const uri = await upload({
115-
client: uploadClient,
116-
files: [file],
117-
});
118-
119-
// eslint-disable-next-line no-restricted-syntax
120-
const resolvedUrl = resolveScheme({
121-
client: uploadClient,
122-
uri,
123-
});
124-
125-
form.setValue("imageUrl", resolvedUrl);
126-
return;
127-
},
128-
onSuccess: () => {
129-
toast.success("Image uploaded successfully.");
130-
},
131-
onError: (e) => {
132-
console.error(e);
133-
// setImage(undefined);
134-
toast.error(parseErrorToMessage(e), { duration: 5000 });
135-
},
136-
});
109+
// const uploadMutation = useMutation({
110+
// mutationFn: async (file: File) => {
111+
// const uploadClient = createThirdwebClient({
112+
// clientId: "f958464759859da7a1c6f9d905c90a43", //7ae789153cf9ecde8f35649f2d8a4333", // Special client ID for uploads only on thirdweb.com
113+
// });
114+
// const uri = await upload({
115+
// client: uploadClient,
116+
// files: [file],
117+
// });
118+
//
119+
// // eslint-disable-next-line no-restricted-syntax
120+
// const resolvedUrl = resolveScheme({
121+
// client: uploadClient,
122+
// uri,
123+
// });
124+
//
125+
// form.setValue("imageUrl", resolvedUrl);
126+
// return;
127+
// },
128+
// onSuccess: () => {
129+
// toast.success("Image uploaded successfully.");
130+
// },
131+
// onError: (e) => {
132+
// console.error(e);
133+
// // setImage(undefined);
134+
// toast.error(parseErrorToMessage(e), { duration: 5000 });
135+
// },
136+
// });
137137

138138
return (
139139
<Dialog onOpenChange={setOpen} open={open}>

0 commit comments

Comments
 (0)