Skip to content

Commit

Permalink
fix: remove 2023 from filters
Browse files Browse the repository at this point in the history
  • Loading branch information
beingnoble03 committed Nov 11, 2023
1 parent 13d6356 commit 1e78818
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
6 changes: 3 additions & 3 deletions src/components/org-info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const OrgInfo = ({ data }) => {
return <span className="org-info-topic">{topic}</span>
})

const isParticipatingIn2023 = "2023" in data.years
// const isParticipatingIn2023 = "2023" in data.years

return (
<div className="org-info-container">
Expand All @@ -53,7 +53,7 @@ const OrgInfo = ({ data }) => {
}}
></div>
</div>
{isParticipatingIn2023 && (
{/* {isParticipatingIn2023 && (
<Message color="orange" style={{ margin: "1%" }}>
<Message.Header>
{data.name} is participating in{" "}
Expand Down Expand Up @@ -87,7 +87,7 @@ const OrgInfo = ({ data }) => {
for this organization.
</Message.Header>
</Message>
)}
)} */}
<div className="org-info-site-container">
<OutboundLink href={data.url} rel="noreferrer" target="_blank">
<Button icon labelPosition="left" color="orange">
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects-graph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const ProjectsGraph = ({ data }) => {
const years = queryData.filter.years
.map(item => item.name)
.sort()
.filter(item => item != 2023)
.filter(item => item != 2024)
const numProjects = []

for (const year of years) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/projects-section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const ProjectsSection = ({ data }) => {
const projectColumns = useBreakpoint().l ? 3 : 4

const projectPanes = Object.entries(data)
.filter(([year, _]) => year != 2023)
.filter(([year, _]) => year != 2024)
.map(([year, yearData]) => {
return {
menuItem: year,
Expand Down
4 changes: 0 additions & 4 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import "./index.css"
import Layout from "../layouts/layout"
import OrgCard from "../components/org-card"
import SEO from "../components/seo"
import Notification from "../components/notification"
import { Grid } from "semantic-ui-react"
import { useAppSelector, useAppDispatch } from "../store"
import { getSearch } from "../store/search"
Expand Down Expand Up @@ -216,9 +215,6 @@ const IndexPage = ({ data }) => {
return (
<Layout>
<SEO title={"Home"} meta={meta} />
<Grid className="index-org-cards-grid">
<Notification />
</Grid>
<div style={{ marginTop: "1rem", textAlign: "center" }}>
<a className="ui orange label">
{filteredOrganizations.length} results
Expand Down
2 changes: 1 addition & 1 deletion src/templates/organization.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const OrganizationPage = ({ pageContext: { organization }, data }) => {
</Grid.Column>
</Grid>
{/* TODO(nishantwrp): This is temp fix. Refactor it. */}
{!!Object.keys(organization.years).filter(y => y != 2023).length && (
{!!Object.keys(organization.years).filter(y => y != 2024).length && (
<>
<div className="organization-heading-container">Past Projects</div>
<ProjectsSection data={organization.years} />
Expand Down

0 comments on commit 1e78818

Please sign in to comment.