mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
Lint
This commit is contained in:
parent
94ace88ba7
commit
32ce3525b8
@ -8,4 +8,4 @@ export interface ActionSheetOptions {
|
||||
anchor?: number;
|
||||
}
|
||||
|
||||
export type CompletionCallback = (buttonIndex: number) => void;
|
||||
export type CompletionCallback = (buttonIndex: number) => void;
|
||||
|
@ -6,8 +6,7 @@ export default class ActionSheet {
|
||||
static showActionSheetWithOptions(options: ActionSheetOptions, completion: CompletionCallback): void {
|
||||
InteractionManager.runAfterInteractions(() => {
|
||||
const alertOptions = options.options.map((option, index) => {
|
||||
// Determine the style based on the button index
|
||||
let style: 'default' | 'cancel' | 'destructive' = 'default'; // Default style
|
||||
let style: 'default' | 'cancel' | 'destructive' = 'default';
|
||||
if (index === options.destructiveButtonIndex) {
|
||||
style = 'destructive';
|
||||
} else if (index === options.cancelButtonIndex) {
|
||||
|
Loading…
Reference in New Issue
Block a user