Remove copy fetching
import { Router } from "@reach/router";
-import { graphql } from "gatsby";
import { Column, Row } from "grigliata";
import * as React from "react";
@@ -7,20 +6,9 @@ import { ProfileApp } from "../app/profile";
import { LoginForm } from "../components/login-form";
import { MaxWidthWrapper } from "../components/max-width-wrapper";
import { STANDARD_ROW_PADDING } from "../config/spacing";
-import { HomePageQuery } from "../generated/graphql";
import { MainLayout } from "../layouts/main";
-export default ({
- data,
- pageContext,
-}: {
- data: HomePageQuery;
- pageContext: { language: string };
-}) => (
- // const {
- // backend: { conference },
- // } = data;
-
+export default ({ pageContext }: { pageContext: { language: string } }) => (
<MainLayout language={pageContext.language}>
<MaxWidthWrapper>
<Row
@@ -44,17 +32,3 @@ export default ({
</MaxWidthWrapper>
</MainLayout>
);
-
-export const query = graphql`
- query AppQuery($language: String!) {
- backend {
- conference {
- introTitle: copy(key: "intro-title-1", language: $language)
- introText: copy(key: "intro-text-1", language: $language)
- introTitle2: copy(key: "intro-title-2", language: $language)
- introText2: copy(key: "intro-text-2", language: $language)
- eventsIntro: copy(key: "events-intro", language: $language)
- }
- }
- }
-`;
