diff options
author | Eric Bailey <git@esb.lol> | 2023-08-25 10:48:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 08:48:38 -0700 |
commit | b15a435069a4721214a542af0bd0d24c8ae2066d (patch) | |
tree | eaf95bd63268786b9e53f61763d80537b15f4470 /src/view/com/util/Alert.web.tsx | |
parent | a0dca81a749269839dc78c1952305ba4d0f5568d (diff) | |
download | voidsky-b15a435069a4721214a542af0bd0d24c8ae2066d.tar.zst |
Eslint updates (#1281)
* eslint: Update eslintrc * eslint: Strings must use singlequote quotes * eslint: expected { after if-condition * eslint: update warnings * a little cleanup * remove conflicted file --------- Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
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) { |