added type declarations
This commit is contained in:
parent
5734c9b8fa
commit
14387a5413
3 changed files with 6 additions and 11 deletions
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
import Navbar from '../../components/navbar';
|
||||
import Item from "../../components/item";
|
||||
|
||||
export default () => (
|
||||
export default (): JSX.Element => (
|
||||
<>
|
||||
<Navbar />
|
||||
<Item
|
||||
|
@ -19,4 +19,4 @@ export default () => (
|
|||
subtitle="subtitle"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
);
|
||||
|
|
|
@ -3,13 +3,8 @@ import Navbar from '../components/navbar';
|
|||
import { graphql } from "gatsby";
|
||||
import { MDXRenderer } from 'gatsby-plugin-mdx';
|
||||
|
||||
export default ({
|
||||
data
|
||||
}) => {
|
||||
let {
|
||||
frontmatter,
|
||||
body
|
||||
} = data.mdx;
|
||||
export default ({ data }) => {
|
||||
const { frontmatter, body } = data.mdx;
|
||||
|
||||
return <>
|
||||
<Navbar />
|
||||
|
@ -29,4 +24,4 @@ query NotesIndexQuery($id: String!) {
|
|||
tableOfContents
|
||||
body
|
||||
}
|
||||
}`;
|
||||
}`;
|
||||
|
|
|
@ -8,7 +8,7 @@ import Navbar from "../components/navbar";
|
|||
import { graphql } from "gatsby";
|
||||
import style from "./notes.module.css";
|
||||
|
||||
export default ({ data, pageContext }) => {
|
||||
export default ({ data, pageContext }): JSX.Element => {
|
||||
const posts = data.allMdx.edges;
|
||||
const { currentPage, numPages, rootPath } = pageContext;
|
||||
let prevPageLink = null;
|
||||
|
|
Loading…
Reference in a new issue