Skip to content

Commit a33b29b

Browse files
author
Rajat
committed
type fixes
1 parent 6eed23e commit a33b29b

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

apps/web/components/admin/settings/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,14 @@ const Settings = (props: SettingsProps) => {
490490
setNewSettings(Object.assign({}, newSettings, change));
491491
};
492492

493+
const copyToClipboard = (text: string) => {
494+
navigator.clipboard.writeText(text);
495+
toast({
496+
title: TOAST_TITLE_SUCCESS,
497+
description: "URL copied to clipboard",
498+
});
499+
};
500+
493501
const handlePaymentSettingsSubmit = async (
494502
event: React.FormEvent<HTMLFormElement>,
495503
) => {

apps/web/next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3-
import "./.next/dev/types/routes.d.ts";
3+
import "./.next/types/routes.d.ts";
44

55
// NOTE: This file should not be edited
66
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

0 commit comments

Comments
 (0)