diff --git a/.env.development b/.env.development index fd48cf5..c15cfb6 100644 --- a/.env.development +++ b/.env.development @@ -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 \ No newline at end of file +VITE_WEBSITE_URL=http://localhost:5175 +VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv" \ No newline at end of file diff --git a/.env.production b/.env.production index f1c8087..3d1ecd3 100644 --- a/.env.production +++ b/.env.production @@ -1,2 +1,5 @@ VITE_API_ENDPOINT= -VITE_CMS_API_URL= \ No newline at end of file +VITE_CMS_API_URL= +VITE_AMAZON_S3_BUCKET= +VITE_WEBSITE_URL= +VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv" \ No newline at end of file diff --git a/.env.staging b/.env.staging index e7b57ce..633bb68 100644 --- a/.env.staging +++ b/.env.staging @@ -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 \ No newline at end of file +VITE_WEBSITE_URL=https://staging.usupport.online +VITE_GIT_BOOK_URL="https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv" \ No newline at end of file diff --git a/src/blocks/AdminProfile/AdminProfile.jsx b/src/blocks/AdminProfile/AdminProfile.jsx index 1f5e97c..630b8e1 100644 --- a/src/blocks/AdminProfile/AdminProfile.jsx +++ b/src/blocks/AdminProfile/AdminProfile.jsx @@ -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 @@ -54,12 +56,7 @@ export const AdminProfile = () => { - window.open( - "https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv", - "_blank" - ) - } + onClick={() => window.open(GIT_BOOK_URL, "_blank")} /> {/*