mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-04 16:06:41 +00:00
fix: open folder settings from the drawer's folders icon
This commit is contained in:
@@ -39,6 +39,7 @@ import type { RootStackParamList } from '../navigation/types';
|
|||||||
import type { Mailbox } from '../api/types';
|
import type { Mailbox } from '../api/types';
|
||||||
import { MODAL_ORIENTATIONS } from '../lib/modal-orientations';
|
import { MODAL_ORIENTATIONS } from '../lib/modal-orientations';
|
||||||
import { confirmSignOut } from '../lib/sign-out-confirm';
|
import { confirmSignOut } from '../lib/sign-out-confirm';
|
||||||
|
import { setPendingSettingsTab } from '../navigation/pending-settings-tab';
|
||||||
|
|
||||||
const CHEVRON_SLOT = 20;
|
const CHEVRON_SLOT = 20;
|
||||||
const INDENT_STEP = 12;
|
const INDENT_STEP = 12;
|
||||||
@@ -1044,8 +1045,15 @@ export default function SidebarDrawer({ visible, onClose, docked = false }: Side
|
|||||||
<Pressable
|
<Pressable
|
||||||
style={styles.sectionSettings}
|
style={styles.sectionSettings}
|
||||||
hitSlop={8}
|
hitSlop={8}
|
||||||
onPress={() => { onClose(); navigation.navigate('MainTabs'); }}
|
// Opens the folder settings; it used to navigate to the screen
|
||||||
accessibilityLabel={t('sidebar.settings', 'Settings')}
|
// already shown, which only closed the drawer.
|
||||||
|
onPress={() => {
|
||||||
|
onClose();
|
||||||
|
setPendingSettingsTab('folders');
|
||||||
|
navigation.navigate('MainTabs', { screen: 'Settings' } as never);
|
||||||
|
}}
|
||||||
|
accessibilityRole="button"
|
||||||
|
accessibilityLabel={t('settings.tabs.folders', 'Folders')}
|
||||||
>
|
>
|
||||||
<Settings size={14} color={c.textMuted} />
|
<Settings size={14} color={c.textMuted} />
|
||||||
</Pressable>
|
</Pressable>
|
||||||
|
|||||||
Reference in New Issue
Block a user