From 73eb1fcabf1851fec6942a56c2afa85ae2df0ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fagundes?= Date: Wed, 8 May 2024 13:27:02 -0300 Subject: [PATCH] fix: session interface import --- src/contexts/SessionContext/SessionContext.tsx | 3 ++- src/service/sessions/session.service.ts | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/contexts/SessionContext/SessionContext.tsx b/src/contexts/SessionContext/SessionContext.tsx index e891846d..75a8b03f 100644 --- a/src/contexts/SessionContext/SessionContext.tsx +++ b/src/contexts/SessionContext/SessionContext.tsx @@ -1,7 +1,8 @@ import { createContext, useCallback, useEffect, useState } from 'react'; -import { ISession, ISessionContext } from './types'; +import { ISessionContext } from './types'; import { SessionServices } from '@/service'; +import { ISession } from '@/service/sessions/types'; const SessionContext = createContext({} as ISessionContext); diff --git a/src/service/sessions/session.service.ts b/src/service/sessions/session.service.ts index e84d9f9d..f8c0f3ed 100644 --- a/src/service/sessions/session.service.ts +++ b/src/service/sessions/session.service.ts @@ -1,7 +1,6 @@ -import { ISession } from '../../contexts/SessionContext/types'; import { IServerResponse } from '../../types'; import { api } from '@/api'; -import { IAuthRequest, IAuthResponse } from './types'; +import { IAuthRequest, IAuthResponse, ISession } from './types'; const SessionServices = { auth: async (payload: IAuthRequest): Promise => {