1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Mobile: Accessibility: Add checked/unchecked accessibility information to the "sort notes by" dialog (#11411)

This commit is contained in:
Henry Heino
2024-11-20 03:39:33 -08:00
committed by GitHub
parent c9608cf4a1
commit d648e43cfb
11 changed files with 135 additions and 39 deletions

View File

@@ -3,16 +3,16 @@ import { Alert } from 'react-native';
import { DialogControl } from '../components/DialogManager';
import { RefObject } from 'react';
import { MessageBoxType, ShowMessageBoxOptions } from '@joplin/lib/shim';
import { PromptButton } from '../components/DialogManager/types';
import { PromptButtonSpec } from '../components/DialogManager/types';
const makeShowMessageBox = (dialogControl: null|RefObject<DialogControl>) => (message: string, options: ShowMessageBoxOptions = null) => {
return new Promise<number>(resolve => {
const okButton: PromptButton = {
const okButton: PromptButtonSpec = {
text: _('OK'),
onPress: () => resolve(0),
};
const cancelButton: PromptButton = {
const cancelButton: PromptButtonSpec = {
text: _('Cancel'),
onPress: () => resolve(1),
style: 'cancel',