Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32162556
D15394.1765045078.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
D15394.1765045078.diff
View Options
diff --git a/native/profile/backup-menu.react.js b/native/profile/backup-menu.react.js
--- a/native/profile/backup-menu.react.js
+++ b/native/profile/backup-menu.react.js
@@ -149,11 +149,24 @@
userIdentifier,
]);
+ const restoreBackupState = useSelector(state => state.restoreBackupState);
+ const restoreBackupStateStr = React.useMemo(
+ () => JSON.stringify(restoreBackupState, null, 2),
+ [restoreBackupState],
+ );
+
return (
<ScrollView
contentContainerStyle={styles.scrollViewContentContainer}
style={styles.scrollView}
>
+ <Text style={styles.header}>RESTORE BACKUP STATE</Text>
+ <View style={styles.section}>
+ <View style={styles.submenuButton}>
+ <Text style={styles.submenuText}>{restoreBackupStateStr}</Text>
+ </View>
+ </View>
+
<Text style={styles.header}>ACTIONS</Text>
<View style={styles.section}>
<Button
@@ -232,6 +245,12 @@
flex: 1,
fontSize: 16,
},
+ submenuButton: {
+ flexDirection: 'row',
+ paddingHorizontal: 24,
+ paddingVertical: 10,
+ alignItems: 'center',
+ },
row: {
flexDirection: 'row',
justifyContent: 'space-between',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 6:17 PM (16 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5840020
Default Alt Text
D15394.1765045078.diff (1 KB)
Attached To
Mode
D15394: [native] show `restoreBackupState` in `BackupMenu`
Attached
Detach File
Event Timeline
Log In to Comment