Revert "Add missing admin action files and navigation links"
This reverts commit 41be6835bf.
This commit is contained in:
1 parent
4a1e1115b3
commit
4d515bc400
338 files changed
+5949
-28144
No files matched your search
@@ -12,7 +12,9 @@ export default function CopyReferralButton({ value }: { value: string }) {
|
||||
|
||||
async function copy() {
|
||||
const absolute =
|
||||
typeof window !== "undefined" && value.startsWith("/") ? `${window.location.origin}${value}` : value;
|
||||
typeof window !== "undefined" && value.startsWith("/")
|
||||
? `${window.location.origin}${value}`
|
||||
: value;
|
||||
try {
|
||||
await navigator.clipboard.writeText(absolute);
|
||||
} catch {
|
||||
|
||||
Reference in new issue
Block a user