From 42a4decc2a5c42ad99c147cada9ac83a4d7e6844 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Tue, 24 Jan 2023 21:25:20 +0100 Subject: [PATCH] Remove not needed `translate` (#240) --- src/components/LoginPage.js | 6 +++--- src/components/RoomDirectory.js | 17 ++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/LoginPage.js b/src/components/LoginPage.js index b31cae3..7792cab 100644 --- a/src/components/LoginPage.js +++ b/src/components/LoginPage.js @@ -269,7 +269,7 @@ const LoginPage = ({ theme }) => { autoFocus name="username" component={renderInput} - label={translate("ra.auth.username")} + label="ra.auth.username" disabled={loading || !supportPassAuth} onBlur={handleUsernameChange} resettable @@ -280,7 +280,7 @@ const LoginPage = ({ theme }) => { { { const classes = useStyles(); - const translate = useTranslate(); const filter = roomDirectoryFilters; const roomIdFilter = filter && filter.room_id ? true : false; const topicFilter = filter && filter.topic ? true : false; @@ -202,48 +201,48 @@ export const FilterableRoomDirectoryList = ({ source="avatar_src" sortable={false} className={classes.small} - label={translate("resources.rooms.fields.avatar")} + label="resources.rooms.fields.avatar" /> {roomIdFilter && ( )} {canonicalAliasFilter && ( )} {topicFilter && ( )}