diff --git a/src/assets/no-device.png b/src/assets/no-device.png new file mode 100644 index 0000000..736c3cf Binary files /dev/null and b/src/assets/no-device.png differ diff --git a/src/components/SetupErrorDisplay.tsx b/src/components/SetupErrorDisplay.tsx index d0f463a..a29cc6d 100644 --- a/src/components/SetupErrorDisplay.tsx +++ b/src/components/SetupErrorDisplay.tsx @@ -1,7 +1,9 @@ import { Match, Switch } from "solid-js"; import { Title } from "solid-start"; +import nodevice from "~/assets/no-device.png"; import { + Button, DefaultMain, DeleteEverything, ExternalLink, @@ -83,6 +85,11 @@ export function SetupErrorDisplay(props: { initialError: Error }) { {i18n.t("error.on_boot.existing_tab.title")} + no device

{error.name}:{" "} {error.message} @@ -90,6 +97,39 @@ export function SetupErrorDisplay(props: { initialError: Error }) { {i18n.t("error.on_boot.existing_tab.description")} + + + + + + + {i18n.t("error.on_boot.already_running.title")} + + + + {i18n.t("error.on_boot.already_running.title")} + + no device +

+ {error.name}:{" "} + {error.message} +

+ + {i18n.t( + "error.on_boot.already_running.description" + )} + + diff --git a/src/i18n/en/translations.ts b/src/i18n/en/translations.ts index 9a05fac..730df13 100644 --- a/src/i18n/en/translations.ts +++ b/src/i18n/en/translations.ts @@ -552,7 +552,12 @@ export default { existing_tab: { title: "Multiple tabs detected", description: - "Mutiny currently only supports use in one tab at a time. It looks like you have another tab open with Mutiny running. Please close that tab and refresh this page, or close this tab and refresh the other one." + "Mutiny can only be used in one tab at a time. It looks like you have another tab open with Mutiny running. Please close that tab and refresh this page, or close this tab and refresh the other one." + }, + already_running: { + title: "Mutiny may be running on another device", + description: + "Mutiny can only be used in one place at a time. It looks like you have another device or browser using this wallet. If you've recently closed Mutiny on another device, please wait a few minutes and try again." }, incompatible_browser: { title: "Incompatible browser",