Skip to content

Commit

Permalink
fix: fixed prettier warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekep-Obasi committed Dec 6, 2023
1 parent 6cac033 commit cf92041
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions frontend/app/src/people/main/Body.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ function BodyComponent() {
const newCheckboxIdToSelectedMapLanguage = {
...checkboxIdToSelectedMapLanguage,
...{
[optionId]: !checkboxIdToSelectedMapLanguage[optionId],
},
[optionId]: !checkboxIdToSelectedMapLanguage[optionId]
}
};
setCheckboxIdToSelectedMapLanguage(newCheckboxIdToSelectedMapLanguage);
};
Expand All @@ -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)
);
});
};
Expand Down Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions frontend/app/src/people/widgetViews/PeopleHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const PeopleHeader = ({ onChangeLanguage, checkboxIdToSelectedMapLanguage }: Peo
minWidth: '300px',
minHeight: '304px',
marginTop: '0px',
marginLeft: '20px',
marginLeft: '20px'
};

return (
Expand All @@ -194,14 +194,14 @@ const PeopleHeader = ({ onChangeLanguage, checkboxIdToSelectedMapLanguage }: Peo
className="materialIconImage"
icon="tune"
style={{
color: isPopoverOpen ? color.grayish.G10 : '',
color: isPopoverOpen ? color.grayish.G10 : ''
}}
/>
</div>
<EuiText
className="filterText"
style={{
color: isPopoverOpen ? color.grayish.G10 : '',
color: isPopoverOpen ? color.grayish.G10 : ''
}}
>
Filter
Expand All @@ -218,7 +218,7 @@ const PeopleHeader = ({ onChangeLanguage, checkboxIdToSelectedMapLanguage }: Peo
<div
style={{
display: 'flex',
flexDirection: 'row',
flexDirection: 'row'
}}
>
<PopOverBox color={color}>
Expand Down

0 comments on commit cf92041

Please sign in to comment.