From a51800471d8fe061e3cf2935a6b3c74e9c4b428d Mon Sep 17 00:00:00 2001 From: AntGe Date: Tue, 29 Oct 2024 03:24:35 +0200 Subject: [PATCH] hub showcase url --- src/api/environment.ts | 2 ++ src/pages/TaskManager/SocialVerificationCard.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/environment.ts b/src/api/environment.ts index 992bc13..041920f 100644 --- a/src/api/environment.ts +++ b/src/api/environment.ts @@ -27,6 +27,8 @@ export const swEnvVariables = { discordBotAddress: "VITE_DISCORD_BOT_ADDRESS", discordBotUrl: "VITE_DISCORD_BOT_API_URL", + hubShowcaseUrl: "VITE_HUB_SHOWCASE_URL", + twitterClientId: "VITE_TWITTER_CLIENT_ID", githubClientId: "VITE_GITHUB_CLIENT_ID" }; diff --git a/src/pages/TaskManager/SocialVerificationCard.tsx b/src/pages/TaskManager/SocialVerificationCard.tsx index 865c465..4a2b390 100644 --- a/src/pages/TaskManager/SocialVerificationCard.tsx +++ b/src/pages/TaskManager/SocialVerificationCard.tsx @@ -1,3 +1,4 @@ +import { environment } from "@api/environment"; import { AutOsButton } from "@components/buttons"; import { Box, Stack, Typography } from "@mui/material"; import { HubData } from "@store/Hub/hub.reducer"; @@ -62,7 +63,7 @@ export const SocialVerificationCard = ({ socialType }) => { { - window.open(`http://localhost:3001/project/${hubData.name}`, '_blank'); + window.open(`${environment.hubShowcaseUrl}/project/${hubData.name}`, '_blank'); }} variant="outlined" sx={{ mt: "auto" }}