Skip to content

Commit

Permalink
♻️ refactor: 将 message reducer 提取到独立文件夹中
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Jul 24, 2023
1 parent b65988e commit 64f40ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/store/session/slices/chat/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { fetchSSE } from '@/utils/fetch';
import { isFunctionMessage } from '@/utils/message';
import { nanoid } from '@/utils/uuid';

import { MessageDispatch, messagesReducer } from './messageReducer';
import { MessageDispatch, messagesReducer } from './reducers/message';

const LOADING_FLAT = '...';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ChatMessageMap } from '@/types/chatMessage';

import { MessageDispatch, messagesReducer } from './messageReducer';
import { MessageDispatch, messagesReducer } from './message';

describe('messagesReducer', () => {
let initialState: ChatMessageMap;
Expand Down

0 comments on commit 64f40ca

Please sign in to comment.