[🐴] 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
zio/stable
Samuel Newman 2024-05-23 18:57:23 +01:00 committed by GitHub
parent f924465899
commit 0e77280310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 1 deletions

View File

@ -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>

View File

@ -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,

View File

@ -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} />