Graphql erabiltzen du (#5)
* feat: graphql erabiltzen du * node bertsioa jeisten du * feat: netlify deployments sartzen du * feat: token-a sortzen du * chore: Gatsbyren aldagaiak berreskuratzen ditu * fix: query-a konpontzen du
This commit is contained in:
@@ -13,12 +13,8 @@ import { Oina } from '../components/Oina';
|
||||
|
||||
interface DataProps {
|
||||
strapiLegeOharra: {
|
||||
data: {
|
||||
attributes: {
|
||||
izenburua: string;
|
||||
edukia: string;
|
||||
};
|
||||
};
|
||||
izenburua: string;
|
||||
edukia: string;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -26,12 +22,8 @@ const LegeOharra: React.VFC<PageProps> = () => {
|
||||
const { strapiLegeOharra } = useStaticQuery<DataProps>(graphql`
|
||||
{
|
||||
strapiLegeOharra {
|
||||
data {
|
||||
attributes {
|
||||
izenburua
|
||||
edukia
|
||||
}
|
||||
}
|
||||
izenburua
|
||||
edukia
|
||||
}
|
||||
}
|
||||
`);
|
||||
@@ -39,7 +31,7 @@ const LegeOharra: React.VFC<PageProps> = () => {
|
||||
return (
|
||||
<>
|
||||
<Helmet
|
||||
title={`${strapiLegeOharra.data.attributes.izenburua} | Laba`}
|
||||
title={`${strapiLegeOharra.izenburua} | Laba`}
|
||||
htmlAttributes={{ lang: 'eu' }}
|
||||
/>
|
||||
|
||||
@@ -49,7 +41,7 @@ const LegeOharra: React.VFC<PageProps> = () => {
|
||||
|
||||
<Container>
|
||||
<Atala>
|
||||
<Edukia>{strapiLegeOharra.data.attributes.edukia}</Edukia>
|
||||
<Edukia>{strapiLegeOharra.edukia}</Edukia>
|
||||
</Atala>
|
||||
</Container>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user