Skip to content

Commit

Permalink
chore: fix nextjs imports in starter
Browse files Browse the repository at this point in the history
  • Loading branch information
StarpTech committed Jun 11, 2022
1 parent 335ed3e commit 0849395
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import { NextPage } from 'next';
import styles from '../styles/Home.module.css';
import { FC, useState } from 'react';
import {
AuthProviders,
useLiveQuery,
useWunderGraph,
withWunderGraph,
} from '../components/generated/wundergraph.nextjs.integration';
import { AuthProviders, useLiveQuery, useWunderGraph, withWunderGraph } from '../components/generated/nextjs';

const JobsPage: NextPage = () => {
const { user, login, logout } = useWunderGraph();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextPage } from 'next';
import styles from '../styles/Home.module.css';
import { useQuery, withWunderGraph } from '../components/generated/wundergraph.nextjs.integration';
import { useQuery, withWunderGraph } from '../components/generated/nextjs';

const JobsPage: NextPage = () => {
const launches = useQuery.PastLaunches({ refetchOnWindowFocus: true });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextPage } from 'next';
import { useQuery, withWunderGraph } from '../components/generated/wundergraph.nextjs.integration';
import { useQuery, withWunderGraph } from '../components/generated/nextjs';
import styles from '../styles/Home.module.css';

const Mocks: NextPage = () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NextPage } from 'next';
import styles from '../styles/Home.module.css';
import { FC, useState } from 'react';
import { useLiveQuery, withWunderGraph } from '../components/generated/wundergraph.nextjs.integration';
import { useLiveQuery, withWunderGraph } from '../components/generated/nextjs';

const RealtimePage: NextPage = () => {
const [city, setCity] = useState<string>('Berlin');
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NextPage } from 'next';
import { useState } from 'react';
import styles from '../styles/Home.module.css';
import { S3Provider, useWunderGraph, withWunderGraph } from '../components/generated/wundergraph.nextjs.integration';
import { S3Provider, useWunderGraph, withWunderGraph } from '../components/generated/nextjs';

const UploadPage: NextPage = () => {
const [files, setFiles] = useState<FileList>();
Expand Down

0 comments on commit 0849395

Please sign in to comment.