Skip to content

Commit

Permalink
fix: session interface import
Browse files Browse the repository at this point in the history
  • Loading branch information
fagundesjg committed May 8, 2024
1 parent 8b0272f commit 73eb1fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/contexts/SessionContext/SessionContext.tsx
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
3 changes: 1 addition & 2 deletions src/service/sessions/session.service.ts
Original file line number Diff line number Diff line change
@@ -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<IAuthResponse> => {
Expand Down

0 comments on commit 73eb1fc

Please sign in to comment.