From eedadb8884c91d7c7259e3fa6e79a25ac5c2d66a Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Thu, 4 Feb 2021 20:35:11 -0500 Subject: [PATCH] refactor(ui): Display user avatars in request list (#848) --- .../RequestList/RequestItem/index.tsx | 42 ++++++++++++------- src/i18n/locale/en.json | 1 - 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/src/components/RequestList/RequestItem/index.tsx b/src/components/RequestList/RequestItem/index.tsx index c10b5b3a7..d7e3cae37 100644 --- a/src/components/RequestList/RequestItem/index.tsx +++ b/src/components/RequestList/RequestItem/index.tsx @@ -27,7 +27,6 @@ import { useToasts } from 'react-toast-notifications'; import RequestModal from '../../RequestModal'; const messages = defineMessages({ - requestedby: 'Requested by {username}', seasons: 'Seasons', notavailable: 'N/A', failedretry: 'Something went wrong while retrying the request.', @@ -163,10 +162,15 @@ const RequestItem: React.FC = ({ {isMovie(title) ? title.title : title.name} -
- {intl.formatMessage(messages.requestedby, { - username: requestData.requestedBy.displayName, - })} +
+ + + {requestData.requestedBy.displayName} +
{requestData.seasons.length > 0 && (
@@ -216,18 +220,24 @@ const RequestItem: React.FC = ({
{requestData.modifiedBy ? ( - {requestData.modifiedBy.displayName} - - ( - + - ) - + + {requestData.modifiedBy.displayName} ( + + ) + +
) : ( N/A diff --git a/src/i18n/locale/en.json b/src/i18n/locale/en.json index 85092face..c6fb2656b 100644 --- a/src/i18n/locale/en.json +++ b/src/i18n/locale/en.json @@ -148,7 +148,6 @@ "components.RequestCard.seasons": "Seasons", "components.RequestList.RequestItem.failedretry": "Something went wrong while retrying the request.", "components.RequestList.RequestItem.notavailable": "N/A", - "components.RequestList.RequestItem.requestedby": "Requested by {username}", "components.RequestList.RequestItem.seasons": "Seasons", "components.RequestList.filterAll": "All", "components.RequestList.filterApproved": "Approved",