Skip to content

Commit

Permalink
remove dates variables from monday plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
suejinkim20 committed Aug 14, 2024
1 parent 0b3188b commit 0419b13
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
11 changes: 1 addition & 10 deletions src/components/sections/important-dates.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,7 @@ import { Section } from "../section"
import { DatesTable } from '../dates-table'
import ImportantDatesContent from '../../content/sections/important-dates.yaml'

export const ImportantDates = ({ content }) => {
const rows = content.nodes.map(({ name, dates, audience }) => ({
name,
dates: dates.reduce((acc, d) => {
acc[d.year] = d.date
return acc
}, {}),
audience,
}))

export const ImportantDates = ( ) => {

return (
<Section title='Important Dates' backgroundColor="#fff" height="55vh">
Expand Down
15 changes: 0 additions & 15 deletions src/components/sections/programs/starShipPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,9 @@ import {
MainPanelButton
} from '../../program-tabs'
import ImportantDatesContent from '../../../content/sections/important-dates.yaml'
import { useStaticQuery, graphql } from "gatsby"
import { DatesTable } from '../../dates-table'

const datesQuery = graphql`query {
dates: allImportantDate {
nodes {
id
name
dates {
date
year
}
}
}
}`

export const StarShipPanel = ({title, content}) => {
const data = useStaticQuery(datesQuery)

return (
<Container maxWidth="md" sx={{margin: '1.5rem auto'}}>
Expand Down

0 comments on commit 0419b13

Please sign in to comment.