Skip to content

Commit

Permalink
Merge pull request #55 from UNICEFECAR/fix/issue_91
Browse files Browse the repository at this point in the history
Add: user guide buttom to UserProfile
  • Loading branch information
georgipavlov-7DIGIT authored Jan 12, 2024
2 parents d75a24a + b3ea051 commit 4f38eeb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ VITE_AMAZON_S3_BUCKET=https://usupport-staging.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=https://staging.usupport.online
VITE_SOCKET_IO_URL=wss://staging.usupport.online
VITE_STRIPE_PUBLIC_KEY=pk_test_51MPzPVEFe7qoLe5D8bfwXpGuYvL0I98ui3P2lfM1cWoG1b0oRU8GfXBzWnXMrivdRwR7gXXngkjiNxm85PXv4B1400jL8VhSUh
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_GIT_BOOK_URL=https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ VITE_API_ENDPOINT=
VITE_CMS_API_URL=
VITE_AMAZON_S3_BUCKET=https://usupport-production.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=https://usupport.online
VITE_STRIPE_PUBLIC_KEY=
VITE_STRIPE_PUBLIC_KEY=
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
Expand Up @@ -5,4 +5,5 @@ VITE_AMAZON_S3_BUCKET=https://usupport-staging.s3.eu-central-1.amazonaws.com
VITE_WEBSITE_URL=https://staging.usupport.online
VITE_SOCKET_IO_URL=wss://staging.usupport.online
VITE_STRIPE_PUBLIC_KEY=pk_test_51MPzPVEFe7qoLe5D8bfwXpGuYvL0I98ui3P2lfM1cWoG1b0oRU8GfXBzWnXMrivdRwR7gXXngkjiNxm85PXv4B1400jL8VhSUh
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_RECAPTCHA_SITE_KEY=6LeXgo4mAAAAAGZE3yzXq2datUkSUu2ftwTPj27K
VITE_GIT_BOOK_URL=https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv
7 changes: 7 additions & 0 deletions src/blocks/UserProfile/UserProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useGetClientData } from "#hooks";
import "./user-profile.scss";

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

/**
* UserProfile
Expand Down Expand Up @@ -133,6 +134,12 @@ export const UserProfile = ({ openModal, isTmpUser }) => {
classes="user-profile__grid__item__button"
onClick={() => handleRedirect("/cookie-policy")}
/>
<ButtonSelector
label={t("user_guide")}
iconName="document"
classes="user-profile__grid__item__button"
onClick={() => window.open(GIT_BOOK_URL, "_blank")}
/>
<ButtonSelector
label={t("FAQ_button_label")}
iconName="info"
Expand Down
3 changes: 2 additions & 1 deletion src/blocks/UserProfile/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"mood_tracker_button_label": "Mood tracker",
"payments_history_button_label": "Payment History",
"terms_of_use": "Terms of use",
"cookie_policy": "Cookie policy"
"cookie_policy": "Cookie policy",
"user_guide": "Platform usage"
}
3 changes: 2 additions & 1 deletion src/blocks/UserProfile/locales/kk.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"mood_tracker_button_label": "Көңіл-күй трекері",
"payments_history_button_label": "Төлем тарихы",
"terms_of_use": "Пайдалану шарттары",
"cookie_policy": "Cookie саясаты"
"cookie_policy": "Cookie саясаты",
"user_guide": "Платформа Нұсқаулығы"
}
3 changes: 2 additions & 1 deletion src/blocks/UserProfile/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"mood_tracker_button_label": "Трекер настроения",
"payments_history_button_label": "История платежей",
"terms_of_use": "Условия использования",
"cookie_policy": "Политика Cookie"
"cookie_policy": "Политика Cookie",
"user_guide": "Руководство по платформе"
}

0 comments on commit 4f38eeb

Please sign in to comment.