Skip to content

Commit 7da2a35

Browse files
committed
Fix errors
1 parent 96e2fad commit 7da2a35

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/pages/logg-inn.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Layout from '@/components/Layout/Layout.component';
22
import UserLogin from '@/components/User/UserLogin.component';
3+
34
import type { NextPage } from 'next';
45

56
const LoginPage: NextPage = () => {

src/pages/min-konto.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import Layout from '@/components/Layout/Layout.component';
22
import CustomerAccount from '@/components/User/CustomerAccount.component';
3-
import type { NextPage } from 'next';
43
import withAuth from '@/components/User/withAuth.component';
54

5+
import type { NextPage } from 'next';
6+
67
const CustomerAccountPage: NextPage = () => {
78
return (
89
<Layout title="Min konto">

src/utils/apollo/ApolloClient.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/*eslint complexity: ["error", 6]*/
1+
/*eslint complexity: ["error", 8]*/
22

3-
/* eslint-disable unicorn/no-thenable */
43
import {
54
ApolloClient,
65
InMemoryCache,

src/utils/auth.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { ApolloClient, InMemoryCache, gql } from '@apollo/client';
1+
import { ApolloClient, InMemoryCache } from '@apollo/client';
22
import { LOGIN_USER, REFRESH_AUTH_TOKEN } from './gql/GQL_MUTATIONS';
33

4-
let tokenSetter: NodeJS.Timeout;
4+
let tokenSetter: ReturnType<typeof setInterval>;
55

66
export function hasCredentials() {
77
const authToken = sessionStorage.getItem(

0 commit comments

Comments
 (0)