diff --git a/src/components/sections/important-dates.js b/src/components/sections/important-dates.js index 5dcb9b1..e441585 100644 --- a/src/components/sections/important-dates.js +++ b/src/components/sections/important-dates.js @@ -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 (
diff --git a/src/components/sections/programs/starShipPanel.js b/src/components/sections/programs/starShipPanel.js index b26e12a..d7edab4 100644 --- a/src/components/sections/programs/starShipPanel.js +++ b/src/components/sections/programs/starShipPanel.js @@ -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 (