From 70ac5cfd7e9e10e52456807967d230db9664a177 Mon Sep 17 00:00:00 2001 From: Nick Grato Date: Wed, 27 Sep 2023 15:42:14 -0700 Subject: [PATCH] adding secret copy button for token --- .../modules/hubs/HubFormCard/HubFormCard.tsx | 9 ++++- .../shared/SecretCopy/SecretCopy.module.scss | 6 +++ .../shared/SecretCopy/SecretCopy.tsx | 40 +++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 client/components/shared/SecretCopy/SecretCopy.module.scss create mode 100644 client/components/shared/SecretCopy/SecretCopy.tsx diff --git a/client/components/modules/hubs/HubFormCard/HubFormCard.tsx b/client/components/modules/hubs/HubFormCard/HubFormCard.tsx index 27cdf6d9..9a2be9f1 100644 --- a/client/components/modules/hubs/HubFormCard/HubFormCard.tsx +++ b/client/components/modules/hubs/HubFormCard/HubFormCard.tsx @@ -15,6 +15,9 @@ import validate, { FormValues } from './validate'; import { useIsProfessional } from 'hooks/usePlans'; import Hub from 'classes/Hub'; import { HubT } from 'types/General'; +import SecretCopy from '@Shared/SecretCopy/SecretCopy'; +import { CookiesE } from 'types/Cookies'; +import { getCookie } from 'cookies-next'; type HubFormCardPropsT = { hub: HubT; @@ -303,6 +306,11 @@ const HubFormCard = ({ hub: _hub, classProp = '' }: HubFormCardPropsT) => { troubleshooting custom domains.

+ +