You've already forked joplin
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user