Skip to content

Commit

Permalink
Add: user guide button to UserProfile
Browse files Browse the repository at this point in the history
  • Loading branch information
georgiganchev-7DIGIT committed Jan 4, 2024
1 parent c98bcd0 commit 7d3a3b8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
12 changes: 11 additions & 1 deletion src/blocks/UserProfile/UserProfile.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState, useContext } from "react";
import { useTranslation } from "react-i18next";
import { View, StyleSheet, ScrollView } from "react-native";
import { View, StyleSheet, ScrollView, Linking } from "react-native";
import Config from "react-native-config";
import { useQuery } from "@tanstack/react-query";

Expand Down Expand Up @@ -229,6 +229,16 @@ export const UserProfile = ({ navigation }) => {
onPress={() => handleRedirect("TermsOfUse")}
style={styles.buttonSelector}
/>
<ButtonSelector
label={t("user_guide")}
iconName="document"
onPress={() =>
Linking.openURL(
"https://7digit-1.gitbook.io/usupport/y0yJCW2nZ6Sb52p4arjv"
)
}
style={styles.buttonSelector}
/>
<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 @@ -20,5 +20,6 @@
"terms_and_conditions": "Terms of Use",
"language_button_label": "Change language",
"dark_mode_button_label": "Dark mode",
"light_mode_button_label": "Light mode"
"light_mode_button_label": "Light mode",
"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 @@ -20,5 +20,6 @@
"terms_and_conditions": "Шарттар мен ережелер",
"language_button_label": "Тілді өзгерту",
"dark_mode_button_label": "Қараңғы режим",
"light_mode_button_label": "Ашық режим"
"light_mode_button_label": "Ашық режим",
"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 @@ -20,5 +20,6 @@
"terms_and_conditions": "Условия и положения",
"language_button_label": "Изменить язык",
"dark_mode_button_label": "Темный режим",
"light_mode_button_label": "Светлый режим"
"light_mode_button_label": "Светлый режим",
"user_guide": "Руководство по платформе"
}

0 comments on commit 7d3a3b8

Please sign in to comment.