Fixes: 1) Remove unused useRouter import in index.tsx to clean up dependencies;
Extra: Ensure better maintainability by eliminating redundant imports;
This commit is contained in:
parent
4e4c9c4f4f
commit
9ceeb32f5d
1 changed files with 0 additions and 1 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
import {apolloClient} from 'graphql/apolloClient';
|
import {apolloClient} from 'graphql/apolloClient';
|
||||||
import {GET_PRODUCTS} from 'graphql/queries/getProducts';
|
import {GET_PRODUCTS} from 'graphql/queries/getProducts';
|
||||||
import {GetStaticProps} from 'next';
|
import {GetStaticProps} from 'next';
|
||||||
import {useRouter} from "next/router";
|
|
||||||
|
|
||||||
export const getStaticProps: GetStaticProps = async () => {
|
export const getStaticProps: GetStaticProps = async () => {
|
||||||
const {data} = await apolloClient.query({
|
const {data} = await apolloClient.query({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue