mirror of
https://github.com/tjsga/tj-sga-website-react.git
synced 2025-04-17 18:30:17 -04:00
26 lines
504 B
TypeScript
26 lines
504 B
TypeScript
import React from 'react';
|
|
import Hero from '../components/Hero';
|
|
import MemberRow from '../components/MemberRow';
|
|
import useQuery from '../hooks/useInitiatives';
|
|
|
|
export default function Officers() {
|
|
let officers = useQuery<SGA.MemberDocument[]>(
|
|
`*[_type == 'member' && committee == 'officer']`
|
|
);
|
|
|
|
if (!officers) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<Hero heading='Officers' />
|
|
<div>
|
|
{officers.map((officer) => {
|
|
return <MemberRow member={officer} />;
|
|
})}
|
|
</div>
|
|
</>
|
|
);
|
|
}
|