Skip to content

Commit

Permalink
ran prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JiginJayaprakash committed Nov 2, 2023
1 parent 6bc8e1b commit 230fa7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/redesign/components/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function About() {
<TeamMember member={founders.nikhil_woodruff} />
<TeamMember member={founders.pavel_makarchuk} />
</Section>
<div style={{ display:"none" }}>
<div style={{ display: "none" }}>
<Section backgroundColor={style.colors.BLUE_PRIMARY}>
<h2 style={{ color: style.colors.WHITE }}>Advisory board</h2>
<Advisor member={advisors.george_sadowsky} />
Expand Down
22 changes: 11 additions & 11 deletions src/redesign/components/Research.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ function ResearchExplorer() {
searchParams.get("topics")?.split(",") || topicTags,
);
useEffect(() => {
searchParams.set("topics", filteredTopics.join(', '));
setSearchParams(searchParams)
searchParams.set("topics", filteredTopics.join(", "));
setSearchParams(searchParams);
}, [filteredTopics]);
const [filteredLocations, setFilteredLocations] = useState(
searchParams.get("locations")?.split(",") || locationTags,
);
useEffect(() => {
searchParams.set("locations", filteredLocations.join(', '));
setSearchParams(searchParams)
searchParams.set("locations", filteredLocations.join(", "));
setSearchParams(searchParams);
}, [filteredLocations]);
const [filteredAuthors, setFilteredAuthors] = useState(
searchParams.get("authors")?.split(",") || authorKeys,
);
useEffect(() => {
searchParams.set("authors", filteredAuthors.join(', '));
setSearchParams(searchParams)
searchParams.set("authors", filteredAuthors.join(", "));
setSearchParams(searchParams);
}, [filteredAuthors]);
const filterFunction = (post) => {
let hasMetAtLeastOneFilteredTopic = false;
Expand Down Expand Up @@ -108,10 +108,10 @@ function ResearchExplorer() {
const searchField = searchParams.get("search");
const filteredPosts = searchField
? fuse
.search(searchField, {
distance: 10,
})
.map((result) => result.item)
.search(searchField, {
distance: 10,
})
.map((result) => result.item)
: preFilteredPosts;

const searchTools = (
Expand Down Expand Up @@ -397,7 +397,7 @@ function Expandable({ title, children }) {
animate={{
maxHeight: expanded
? contentRef.current?.getBoundingClientRect().height +
titleRef.current?.getBoundingClientRect().height
titleRef.current?.getBoundingClientRect().height
: titleRef.current?.getBoundingClientRect().height,
}}
transition={{
Expand Down

0 comments on commit 230fa7b

Please sign in to comment.