Skip to content

Commit

Permalink
hub showcase url
Browse files Browse the repository at this point in the history
  • Loading branch information
AntGe committed Oct 29, 2024
1 parent 5a7be15 commit a518004
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/api/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
};
Expand Down
3 changes: 2 additions & 1 deletion src/pages/TaskManager/SocialVerificationCard.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -62,7 +63,7 @@ export const SocialVerificationCard = ({ socialType }) => {
</Typography>
<AutOsButton
onClick={() => {
window.open(`http://localhost:3001/project/${hubData.name}`, '_blank');
window.open(`${environment.hubShowcaseUrl}/project/${hubData.name}`, '_blank');
}}
variant="outlined"
sx={{ mt: "auto" }}
Expand Down

0 comments on commit a518004

Please sign in to comment.