diff options
author | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-25 14:53:03 -0700 |
---|---|---|
committer | Ansh Nanda <anshnanda10@gmail.com> | 2023-08-25 14:53:03 -0700 |
commit | 0ca28ccca65a764bf66238cd59df5f6dbb958d2b (patch) | |
tree | cd0f55a79d9b99657f1d1639029d0dbe66795d3e /src/view/com/util/Alert.web.tsx | |
parent | 08fe7fb08451d4d286f5013d9ad14b4e32afa50b (diff) | |
parent | a3cb12f584f6d55a0754fd608fb00d9b7f29e807 (diff) | |
download | voidsky-0ca28ccca65a764bf66238cd59df5f6dbb958d2b.tar.zst |
Merge branch 'main' into ansh/app-812-add-custom-feed-discovery-to-onboarding
Diffstat (limited to 'src/view/com/util/Alert.web.tsx')
-rw-r--r-- | src/view/com/util/Alert.web.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/com/util/Alert.web.tsx b/src/view/com/util/Alert.web.tsx index 94ccc7e43..bf2456504 100644 --- a/src/view/com/util/Alert.web.tsx +++ b/src/view/com/util/Alert.web.tsx @@ -3,10 +3,12 @@ import {AlertButton, AlertStatic} from 'react-native' class WebAlert implements Pick<AlertStatic, 'alert'> { public alert(title: string, message?: string, buttons?: AlertButton[]): void { if (buttons === undefined || buttons.length === 0) { + // eslint-disable-next-line no-alert window.alert([title, message].filter(Boolean).join('\n')) return } + // eslint-disable-next-line no-alert const result = window.confirm([title, message].filter(Boolean).join('\n')) if (result === true) { |