Remove register button when there are no sonos devices (#39)

This commit is contained in:
Simon J
2021-08-31 22:03:44 +10:00
committed by GitHub
parent 0f8c45cd03
commit f045867554
4 changed files with 226 additions and 140 deletions

View File

@@ -36,7 +36,8 @@ export type KEY =
| "failedToRemoveRegistration"
| "invalidLinkCode"
| "loginSuccessful"
| "loginFailed";
| "loginFailed"
| "noSonosDevices";
const translations: Record<SUPPORTED_LANG, Record<KEY, string>> = {
"en-US": {
@@ -71,6 +72,7 @@ const translations: Record<SUPPORTED_LANG, Record<KEY, string>> = {
invalidLinkCode: "Invalid linkCode!",
loginSuccessful: "Login successful!",
loginFailed: "Login failed!",
noSonosDevices: "No sonos devices",
},
"nl-NL": {
AppLinkMessage: "Sonos koppelen aan $BONOB_SONOS_SERVICE_NAME",
@@ -104,6 +106,7 @@ const translations: Record<SUPPORTED_LANG, Record<KEY, string>> = {
invalidLinkCode: "Ongeldige linkcode!",
loginSuccessful: "Inloggen gelukt!",
loginFailed: "Inloggen mislukt!",
noSonosDevices: "Geen Sonos-apparaten",
},
};