Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32602472
D12662.1767435769.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D12662.1767435769.diff
View Options
diff --git a/native/chat/settings/thread-settings-notifications.react.js b/native/chat/settings/thread-settings-notifications.react.js
--- a/native/chat/settings/thread-settings-notifications.react.js
+++ b/native/chat/settings/thread-settings-notifications.react.js
@@ -151,6 +151,8 @@
onBackgroundSelected,
saveButtonDisabled,
onSave,
+ isSidebar,
+ canPromoteSidebar,
} = useThreadSettingsNotifications(threadInfo, goBack);
React.useEffect(() => {
@@ -224,6 +226,30 @@
/>
);
+ const noticeText = React.useMemo(() => {
+ if (!isSidebar) {
+ return null;
+ }
+
+ return (
+ <View style={styles.noticeTextContainer}>
+ <Text style={styles.noticeText}>
+ {threadSettingsNotificationsCopy.IS_SIDEBAR}
+ </Text>
+ <Text style={styles.noticeText}>
+ {canPromoteSidebar
+ ? threadSettingsNotificationsCopy.IS_SIDEBAR_CAN_PROMOTE
+ : threadSettingsNotificationsCopy.IS_SIDEBAR_CAN_NOT_PROMOTE}
+ </Text>
+ </View>
+ );
+ }, [
+ canPromoteSidebar,
+ isSidebar,
+ styles.noticeText,
+ styles.noticeTextContainer,
+ ]);
+
return (
<View style={styles.container}>
<View style={styles.enumSettingsOptionContainer}>
@@ -251,8 +277,10 @@
onEnumValuePress={onBackgroundSelected}
description={mutedDescription}
icon={mutedIllustration}
+ disabled={isSidebar}
/>
</View>
+ {noticeText}
</View>
);
}
@@ -287,6 +315,16 @@
color: 'panelInputSecondaryForeground',
textDecorationLine: 'line-through',
},
+ noticeTextContainer: {
+ padding: 16,
+ },
+ noticeText: {
+ color: 'panelForegroundSecondaryLabel',
+ textAlign: 'center',
+ fontSize: 14,
+ lineHeight: 18,
+ marginVertical: 8,
+ },
};
export default ThreadSettingsNotifications;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 3, 10:22 AM (9 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5887780
Default Alt Text
D12662.1767435769.diff (1 KB)
Attached To
Mode
D12662: [native] introduce thread notif settings notice text
Attached
Detach File
Event Timeline
Log In to Comment