Skip to content

Commit

Permalink
refactor: moved contextTypes to Types directory
Browse files Browse the repository at this point in the history
  • Loading branch information
camelPhonso committed Jun 8, 2024
1 parent 76cda3d commit 6efd8b9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion context/conversationContext.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
'use client';
import { Dispatch, createContext, useContext, useReducer } from 'react';
import { ConversationActionType, IConversationState } from './contextTypes';
import {
ConversationActionType,
IConversationState,
} from '../types/contextTypes';
import conversationReducer from './conversationStore';

type ConversationContextProviderProps = {
Expand Down
5 changes: 4 additions & 1 deletion context/conversationStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { ConversationActionType, IConversationState } from './contextTypes';
import {
ConversationActionType,
IConversationState,
} from '../types/contextTypes';

export default function conversationReducer(
state: IConversationState,
Expand Down
File renamed without changes.

0 comments on commit 6efd8b9

Please sign in to comment.