Skip to content

Commit

Permalink
update order of navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed Jan 22, 2024
1 parent 10e405e commit bc9690f
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions apps/nextjs/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
// import '../styles/globals.css'
import '../styles/global.scss';
import '../styles/App.scss';
import '@fontsource/finger-paint';
import '@fontsource/roboto-mono';
import '@fontsource/noto-sans';
import '@fontsource/russo-one';
import { withUrqlClient } from 'next-urql';
import { cacheExchange, fetchExchange } from '@urql/core';
import "../styles/global.scss";
import "../styles/App.scss";
import "@fontsource/finger-paint";
import "@fontsource/roboto-mono";
import "@fontsource/noto-sans";
import "@fontsource/russo-one";
import { withUrqlClient } from "next-urql";
import { cacheExchange, fetchExchange } from "@urql/core";

import { AuthProvider } from '../components/auth';
import CookieConsent from 'react-cookie-consent';
import Navbar from '../components/Navbar/Navbar';
import Footer from '../components/Footer/Footer';
import { gql, useQuery } from 'urql';
import type { AppProps } from 'next/app';
import { AuthProvider } from "../components/auth";
import CookieConsent from "react-cookie-consent";
import Navbar from "../components/Navbar/Navbar";
import Footer from "../components/Footer/Footer";
import { gql, useQuery } from "urql";
import type { AppProps } from "next/app";

const QUERY_EVENTS = gql`
query {
events {
events(where: { published: { equals: true } }, orderBy: { startDate: asc }) {
shortname
endDate
published
Expand All @@ -35,16 +35,15 @@ function AusSpeedrunsWebsite({ Component, pageProps }: AppProps) {
<Component {...pageProps} />
<Footer />
<CookieConsent
style={{ fontSize: '1.5rem' }}
buttonStyle={{ background: '#CC7722', color: '#FFFFFF', fontSize: '1.5rem' }}
>
style={{ fontSize: "1.5rem" }}
buttonStyle={{ background: "#CC7722", color: "#FFFFFF", fontSize: "1.5rem" }}>
This website uses cookies to function.
</CookieConsent>
</AuthProvider>
);
}

export default withUrqlClient((_ssrExchange) => ({
url: typeof window === undefined ? 'http://localhost:8000/api/graphql' : '/api/graphql',
url: typeof window === undefined ? "http://localhost:8000/api/graphql" : "/api/graphql",
exchanges: [cacheExchange, fetchExchange],
}))(AusSpeedrunsWebsite);

0 comments on commit bc9690f

Please sign in to comment.