Skip to content

Commit

Permalink
Add: git book url to the environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiganchev-7DIGIT committed Jan 8, 2024
1 parent fd84373 commit 672d1d4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions .env.development
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VITE_API_ENDPOINT=https://staging.usupport.online/api
VITE_API_ENDPOINT=http://localhost:3000/api
VITE_CMS_API_URL=https://staging.usupport.online/cms/api
VITE_AMAZON_S3_BUCKET=https://usupport-staging.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=http://localhost:5175
VITE_WEBSITE_URL=http://localhost:5175
VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv"
5 changes: 4 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
VITE_API_ENDPOINT=
VITE_CMS_API_URL=
VITE_CMS_API_URL=
VITE_AMAZON_S3_BUCKET=
VITE_WEBSITE_URL=
VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv"
3 changes: 2 additions & 1 deletion .env.staging
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VITE_API_ENDPOINT=https://staging.usupport.online/api
VITE_CMS_API_URL=https://staging.usupport.online/cms/api
VITE_AMAZON_S3_BUCKET=https://usupport-staging.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=https://staging.usupport.online
VITE_WEBSITE_URL=https://staging.usupport.online
VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv"
11 changes: 4 additions & 7 deletions src/blocks/AdminProfile/AdminProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import {
ButtonSelector,
} from "@USupport-components-library/src";

import "./admin-profile.scss";
import { useGetAdminData } from "#hooks";
import "./admin-profile.scss";

const GIT_BOOK_URL = `${import.meta.env.VITE_GIT_BOOK_URL}`;

/**
* AdminProfile
Expand Down Expand Up @@ -54,12 +56,7 @@ export const AdminProfile = () => {
<ButtonSelector
label={t("user_guide")}
classes="admin-profile__grid__item__button "
onClick={() =>
window.open(
"https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv",
"_blank"
)
}
onClick={() => window.open(GIT_BOOK_URL, "_blank")}
/>
</GridItem>
{/* <GridItem md={8} lg={12} classes="admin-profile__grid__item">
Expand Down

0 comments on commit 672d1d4

Please sign in to comment.