From cf920415d657446faf809ea5f13d7c960422c570 Mon Sep 17 00:00:00 2001 From: ARREY-ETTA BESSONG EKEP OBASI Date: Wed, 6 Dec 2023 17:05:00 +0100 Subject: [PATCH] fix: fixed prettier warnings --- frontend/app/src/people/main/Body.tsx | 12 ++++++------ frontend/app/src/people/widgetViews/PeopleHeader.tsx | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/app/src/people/main/Body.tsx b/frontend/app/src/people/main/Body.tsx index a6fe9dfa4..ce5452fb5 100644 --- a/frontend/app/src/people/main/Body.tsx +++ b/frontend/app/src/people/main/Body.tsx @@ -80,8 +80,8 @@ function BodyComponent() { const newCheckboxIdToSelectedMapLanguage = { ...checkboxIdToSelectedMapLanguage, ...{ - [optionId]: !checkboxIdToSelectedMapLanguage[optionId], - }, + [optionId]: !checkboxIdToSelectedMapLanguage[optionId] + } }; setCheckboxIdToSelectedMapLanguage(newCheckboxIdToSelectedMapLanguage); }; @@ -106,15 +106,15 @@ function BodyComponent() { const filterByCodingLanguage = (users: PersonType[], codingLanguages: CodingLanguage) => { const requiredLanguages = Object.keys(codingLanguages).filter( - (key: string) => codingLanguages[key], + (key: string) => codingLanguages[key] ); return users.filter((user: PersonType) => { const userCodingLanguages = (user.extras.coding_languages ?? []).map( - (t: { [key: string]: string }) => t.value, + (t: { [key: string]: string }) => t.value ); return requiredLanguages?.every((requiredLanguage: string) => - userCodingLanguages.includes(requiredLanguage), + userCodingLanguages.includes(requiredLanguage) ); }); }; @@ -169,7 +169,7 @@ function BodyComponent() { width: isMobile ? '95vw' : 240, height: 40, border: `1px solid ${color.grayish.G600}`, - background: color.grayish.G600, + background: color.grayish.G600 }} onChange={(e: any) => { ui.setSearchText(e); diff --git a/frontend/app/src/people/widgetViews/PeopleHeader.tsx b/frontend/app/src/people/widgetViews/PeopleHeader.tsx index bbd7a0506..35427a5af 100644 --- a/frontend/app/src/people/widgetViews/PeopleHeader.tsx +++ b/frontend/app/src/people/widgetViews/PeopleHeader.tsx @@ -181,7 +181,7 @@ const PeopleHeader = ({ onChangeLanguage, checkboxIdToSelectedMapLanguage }: Peo minWidth: '300px', minHeight: '304px', marginTop: '0px', - marginLeft: '20px', + marginLeft: '20px' }; return ( @@ -194,14 +194,14 @@ const PeopleHeader = ({ onChangeLanguage, checkboxIdToSelectedMapLanguage }: Peo className="materialIconImage" icon="tune" style={{ - color: isPopoverOpen ? color.grayish.G10 : '', + color: isPopoverOpen ? color.grayish.G10 : '' }} /> Filter @@ -218,7 +218,7 @@ const PeopleHeader = ({ onChangeLanguage, checkboxIdToSelectedMapLanguage }: Peo