From 235dee0af6b0731b3d742ef1838d36d51ba6e29a Mon Sep 17 00:00:00 2001 From: Johannes Kanefendt Date: Wed, 18 Aug 2021 09:59:13 +0200 Subject: [PATCH] Fix unused imports, coding style --- src/components/rooms.js | 3 +-- src/i18n/de.js | 2 +- src/i18n/en.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/rooms.js b/src/components/rooms.js index 74e89c8..1a40c81 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -7,7 +7,6 @@ import { BulkDeleteButton, DateField, Datagrid, - DeleteButton, Filter, List, NumberField, @@ -490,7 +489,7 @@ export const DeleteRoomButton = props => { onSuccess: () => { notify("resources.rooms.action.erase.send_success"); handleDialogClose(); - redirect('/rooms'); + redirect("/rooms"); }, onFailure: () => notify("resources.rooms.action.erase.send_failure", "error"), diff --git a/src/i18n/de.js b/src/i18n/de.js index 708c9c2..2f1c9aa 100644 --- a/src/i18n/de.js +++ b/src/i18n/de.js @@ -181,7 +181,7 @@ const de = { content: "Sind Sie sicher dass Sie den Raum löschen möchten? Diese Aktion kann nicht rückgängig gemacht werden. Alle Nachrichten und Medien, die der Raum beinhaltet werden vom Server gelöscht!", fields: { - block: "Raum für erneute Beitritte sperren", + block: "Raum für erneute Beitritte sperren", }, send_success: "Der Raum wurde gelöscht", send_failure: "Der Raum konnte nicht gelöscht werden", diff --git a/src/i18n/en.js b/src/i18n/en.js index c459df4..4b3ba5f 100644 --- a/src/i18n/en.js +++ b/src/i18n/en.js @@ -179,7 +179,7 @@ const en = { content: "Are you sure you want to delete the room? This cannot be undone. All messages and shared media in the room will be deleted from the server!", fields: { - block: "Block room from being rejoined", + block: "Block room from being rejoined", }, send_success: "The room has been deleted", send_failure: "The room could not be deleted",