chore: prettier erabiltzen du

This commit is contained in:
Aitor Urrutia
2022-01-14 20:28:45 +01:00
parent ae6e523215
commit 3d86958647
8 changed files with 98 additions and 70 deletions

View File

@@ -1,16 +1,14 @@
import React from "react"
import { Link } from "gatsby"
import React from 'react';
import { Link } from 'gatsby';
const NotFoundPage: React.VFC = () => {
return (
<main>
<h1 >Ez dugu orria topatu</h1>
<br />
<Link to="/">Go home</Link>.
<h1>Ez dugu orria topatu</h1>
<br />
<Link to="/">Go home</Link>.
</main>
)
}
);
};
export default NotFoundPage
export default NotFoundPage;

View File

@@ -1,34 +1,37 @@
import { graphql, PageProps, useStaticQuery } from "gatsby"
import React from "react"
import { graphql, PageProps, useStaticQuery } from 'gatsby';
import React from 'react';
interface DataProps {
strapiHasiera: {
data: {
attributes: {
deskribapena: string
izenburua: string
}
}
}
deskribapena: string;
izenburua: string;
};
};
};
}
const IndexPage: React.VFC<PageProps<DataProps>> = () => {
const {strapiHasiera} = useStaticQuery<DataProps>(graphql`
{
strapiHasiera {
data {
attributes {
deskribapena
izenburua
const { strapiHasiera } = useStaticQuery<DataProps>(graphql`
{
strapiHasiera {
data {
attributes {
deskribapena
izenburua
}
}
}
}
}
`)
return (
<main><h1>{strapiHasiera.data.attributes.izenburua}</h1><p>{strapiHasiera.data.attributes.deskribapena}</p></main>
)
}
`);
export default IndexPage
return (
<main>
<h1>{strapiHasiera.data.attributes.izenburua}</h1>
<p>{strapiHasiera.data.attributes.deskribapena}</p>
</main>
);
};
export default IndexPage;