mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-05-13 05:49:50 -04:00
24 lines
563 B
TypeScript
24 lines
563 B
TypeScript
import React from 'react';
|
|
import FlexColumn from '../components/FlexColumn';
|
|
import Hero from '../components/Hero';
|
|
import InitiativeRow from '../components/InitiativeRow';
|
|
import useQuery from '../hooks/useQuery';
|
|
|
|
export default function Initiatives() {
|
|
let initiatives =
|
|
useQuery<SGA.InitiativeDocument[]>('*[_type == "initiative"]') ?? [];
|
|
|
|
return (
|
|
<>
|
|
<Hero heading='Initiatives' />
|
|
<main>
|
|
<FlexColumn>
|
|
{initiatives.map((initiative) => (
|
|
<InitiativeRow initiative={initiative} />
|
|
))}
|
|
</FlexColumn>
|
|
</main>
|
|
</>
|
|
);
|
|
}
|