about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-23 18:57:23 +0100
committerGitHub <noreply@github.com>2024-05-23 18:57:23 +0100
commit0e77280310e03482525b31d5a907a2820509641b (patch)
treecad456b3961dda11402d68934801228b9d484fdf /src
parentf924465899ac46d7b3030344d000fcbc3f7feef2 (diff)
downloadvoidsky-0e77280310e03482525b31d5a907a2820509641b.tar.zst
[🐴] add link to chat settings from main settings (#4197)
* add link to chat settings from main settings

* move to beneath saved feeds

weird ass diff on this commit lol
Diffstat (limited to 'src')
-rw-r--r--src/screens/Messages/Settings.tsx2
-rw-r--r--src/view/icons/index.tsx2
-rw-r--r--src/view/screens/Settings/index.tsx25
3 files changed, 28 insertions, 1 deletions
diff --git a/src/screens/Messages/Settings.tsx b/src/screens/Messages/Settings.tsx
index 2de355e06..0ca87ce98 100644
--- a/src/screens/Messages/Settings.tsx
+++ b/src/screens/Messages/Settings.tsx
@@ -56,7 +56,7 @@ export function MessagesSettingsScreen({}: Props) {
 
   return (
     <CenteredView sideBorders style={a.h_full_vh}>
-      <ViewHeader title={_(msg`Settings`)} showOnDesktop showBorder />
+      <ViewHeader title={_(msg`Chat Settings`)} showOnDesktop showBorder />
       <View style={[a.p_lg, a.gap_md]}>
         <Text style={[a.text_lg, a.font_bold]}>
           <Trans>Allow new messages from</Trans>
diff --git a/src/view/icons/index.tsx b/src/view/icons/index.tsx
index b9af6a519..025b903b2 100644
--- a/src/view/icons/index.tsx
+++ b/src/view/icons/index.tsx
@@ -9,6 +9,7 @@ import {faCirclePlay} from '@fortawesome/free-regular-svg-icons/faCirclePlay'
 import {faCircleUser} from '@fortawesome/free-regular-svg-icons/faCircleUser'
 import {faClone as farClone} from '@fortawesome/free-regular-svg-icons/faClone'
 import {faComment} from '@fortawesome/free-regular-svg-icons/faComment'
+import {faCommentDots} from '@fortawesome/free-regular-svg-icons/faCommentDots'
 import {faComments} from '@fortawesome/free-regular-svg-icons/faComments'
 import {faCompass} from '@fortawesome/free-regular-svg-icons/faCompass'
 import {faEyeSlash as farEyeSlash} from '@fortawesome/free-regular-svg-icons/faEyeSlash'
@@ -142,6 +143,7 @@ library.add(
   faClone,
   farClone,
   faComment,
+  faCommentDots,
   faCommentSlash,
   faComments,
   faCompass,
diff --git a/src/view/screens/Settings/index.tsx b/src/view/screens/Settings/index.tsx
index c72cb96ae..078ebedab 100644
--- a/src/view/screens/Settings/index.tsx
+++ b/src/view/screens/Settings/index.tsx
@@ -615,6 +615,31 @@ export function SettingsScreen({}: Props) {
             <Trans>My Saved Feeds</Trans>
           </Text>
         </TouchableOpacity>
+        <TouchableOpacity
+          testID="linkToChatSettingsBtn"
+          style={[
+            styles.linkCard,
+            pal.view,
+            isSwitchingAccounts && styles.dimmed,
+          ]}
+          onPress={
+            isSwitchingAccounts
+              ? undefined
+              : () => navigation.navigate('MessagesSettings')
+          }
+          accessibilityRole="button"
+          accessibilityLabel={_(msg`Chat settings`)}
+          accessibilityHint={_(msg`Opens chat settings`)}>
+          <View style={[styles.iconContainer, pal.btn]}>
+            <FontAwesomeIcon
+              icon={['far', 'comment-dots']}
+              style={pal.text as FontAwesomeIconStyle}
+            />
+          </View>
+          <Text type="lg" style={pal.text}>
+            <Trans>Chat Settings</Trans>
+          </Text>
+        </TouchableOpacity>
 
         <View style={styles.spacer20} />