File tree Expand file tree Collapse file tree
components/admin/settings Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) => {
Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments