[🐴] 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 lolzio/stable
parent
f924465899
commit
0e77280310
|
@ -56,7 +56,7 @@ export function MessagesSettingsScreen({}: Props) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<CenteredView sideBorders style={a.h_full_vh}>
|
<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]}>
|
<View style={[a.p_lg, a.gap_md]}>
|
||||||
<Text style={[a.text_lg, a.font_bold]}>
|
<Text style={[a.text_lg, a.font_bold]}>
|
||||||
<Trans>Allow new messages from</Trans>
|
<Trans>Allow new messages from</Trans>
|
||||||
|
|
|
@ -9,6 +9,7 @@ import {faCirclePlay} from '@fortawesome/free-regular-svg-icons/faCirclePlay'
|
||||||
import {faCircleUser} from '@fortawesome/free-regular-svg-icons/faCircleUser'
|
import {faCircleUser} from '@fortawesome/free-regular-svg-icons/faCircleUser'
|
||||||
import {faClone as farClone} from '@fortawesome/free-regular-svg-icons/faClone'
|
import {faClone as farClone} from '@fortawesome/free-regular-svg-icons/faClone'
|
||||||
import {faComment} from '@fortawesome/free-regular-svg-icons/faComment'
|
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 {faComments} from '@fortawesome/free-regular-svg-icons/faComments'
|
||||||
import {faCompass} from '@fortawesome/free-regular-svg-icons/faCompass'
|
import {faCompass} from '@fortawesome/free-regular-svg-icons/faCompass'
|
||||||
import {faEyeSlash as farEyeSlash} from '@fortawesome/free-regular-svg-icons/faEyeSlash'
|
import {faEyeSlash as farEyeSlash} from '@fortawesome/free-regular-svg-icons/faEyeSlash'
|
||||||
|
@ -142,6 +143,7 @@ library.add(
|
||||||
faClone,
|
faClone,
|
||||||
farClone,
|
farClone,
|
||||||
faComment,
|
faComment,
|
||||||
|
faCommentDots,
|
||||||
faCommentSlash,
|
faCommentSlash,
|
||||||
faComments,
|
faComments,
|
||||||
faCompass,
|
faCompass,
|
||||||
|
|
|
@ -615,6 +615,31 @@ export function SettingsScreen({}: Props) {
|
||||||
<Trans>My Saved Feeds</Trans>
|
<Trans>My Saved Feeds</Trans>
|
||||||
</Text>
|
</Text>
|
||||||
</TouchableOpacity>
|
</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} />
|
<View style={styles.spacer20} />
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue