Skip to content

Commit

Permalink
Merge pull request #14 from UNICEFECAR/fix/issue_91
Browse files Browse the repository at this point in the history
Fix/issue 91
  • Loading branch information
georgipavlov-7DIGIT authored Jan 12, 2024
2 parents 5dcdd5a + 5b69a17 commit 5bc8e05
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 8 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
9 changes: 8 additions & 1 deletion 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 @@ -51,6 +53,11 @@ export const AdminProfile = () => {
classes="admin-profile__grid__item__button "
onClick={() => handleRedirect("profile/details/edit")}
/>
<ButtonSelector
label={t("user_guide")}
classes="admin-profile__grid__item__button "
onClick={() => window.open(GIT_BOOK_URL, "_blank")}
/>
</GridItem>
{/* <GridItem md={8} lg={12} classes="admin-profile__grid__item">
<p className="text admin-profile__grid__item__label">{t("other")}</p>
Expand Down
3 changes: 2 additions & 1 deletion src/blocks/AdminProfile/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"notifications_settings_button_label": "Notification settings",
"contact_us_button_label": "Contact us",
"privacy_policy_button_label": "Privacy Policy",
"FAQ_button_label": "FAQ"
"FAQ_button_label": "FAQ",
"user_guide": "Platform usage"
}
3 changes: 2 additions & 1 deletion src/blocks/AdminProfile/locales/kk.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"notifications_settings_button_label": "Хабарландыру баптаулары",
"contact_us_button_label": "Бізге хабарласыңыз",
"privacy_policy_button_label": "Құпиялық саясаты",
"FAQ_button_label": "Жиі қойылатын сұрақтар"
"FAQ_button_label": "Жиі қойылатын сұрақтар",
"user_guide": "Платформа Нұсқаулығы"
}
3 changes: 2 additions & 1 deletion src/blocks/AdminProfile/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"notifications_settings_button_label": "Настройки уведомлений",
"contact_us_button_label": "Свяжитесь с нами",
"privacy_policy_button_label": "Политика конфиденциальности",
"FAQ_button_label": "Часто задаваемые вопросы"
"FAQ_button_label": "Часто задаваемые вопросы",
"user_guide": "Руководство по платформе"
}

0 comments on commit 5bc8e05

Please sign in to comment.