Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Oct 5, 2024
1 parent 301a296 commit e78d179
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions static/js/redux/ui/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ const SearchResult = (props: SearchResultProps) => {

type AreaBubbleProps = { areas: string[] };
export const AreaBubble = ({ areas }: AreaBubbleProps) => {
const isValidArea = (rawAreaSingle: string) : boolean => {
const validAreas = ['H', 'S', 'N', 'E', 'Q', 'writing'];
const isValidArea = (rawAreaSingle: string): boolean => {
const validAreas = ["H", "S", "N", "E", "Q", "writing"];
return validAreas.includes(rawAreaSingle);
}
};

const validAreas = areas.filter((areaCandidate) => isValidArea(areaCandidate));

Expand All @@ -158,13 +158,12 @@ export const AreaBubble = ({ areas }: AreaBubbleProps) => {
))}
</div>
) : null;
}

};

type WritingIntensiveProps = { isWritingIntensive: string };
export const WritingIntensive = ({ isWritingIntensive }: WritingIntensiveProps) =>
isWritingIntensive === "Yes" ? (
<div className="bubble writing">Writing Intensive</div>
) : null;

export default SearchResult;
export default SearchResult;

0 comments on commit e78d179

Please sign in to comment.