From 342c240958bc8b3c2e6ce4745d4eff525f99fdc6 Mon Sep 17 00:00:00 2001 From: Phil Date: Fri, 30 Sep 2022 19:51:02 +0100 Subject: [PATCH] Made Twitch copy link buttons links so right-click -> copy URL works. --- web/pages/twitch.tsx | 114 +++++++++++++++++++++++++------------------ 1 file changed, 67 insertions(+), 47 deletions(-) diff --git a/web/pages/twitch.tsx b/web/pages/twitch.tsx index 6508a69e..8a6c0c4a 100644 --- a/web/pages/twitch.tsx +++ b/web/pages/twitch.tsx @@ -257,6 +257,30 @@ function BotSetupStep(props: { ) } +function CopyLinkButton(props: { link: string; text: string }) { + const { link, text } = props + const toastTheme = { + className: '!bg-primary !text-white', + icon: