3 Commits

Author SHA1 Message Date
Rankin Zheng
7c9edd9261 Refactor MessageContainer component and related stores
- Added IProps interface and updated the MessageContext component to use destructured props in MessageContainer/index.tsx.
- Refactored the map function in MessageContext to destructure the item object.
- Updated the display text in the Accordion.Control component to use destructured values.
- Replaced 'context.content' with 'content' in the Accordion.Panel component.
- In ChatStore.ts, updated the Message model to use the ChatContext model from InputStore for the 'contexts' field.
- Refactored the map function in the 'load' action of ChatStore to destructure and return the parsed context object.
- Made 'file' an optional string in the ChatContext model in InputStore.ts.
- Added an export for the IInputStore type in InputStore.ts.
2023-08-18 11:25:28 +08:00
Rankin Zheng
2c144c4d5f Refactor MessageContainer and MessageHeader components to use MobX
- Replaced Redux hooks with MobX hooks in MessageContainer and MessageHeader components.
- Removed Redux actions and replaced them with equivalent MobX actions.
- Updated event handlers to use MobX actions instead of Redux actions.
- Replaced Redux selectors with equivalent MobX observables.
- Converted MessageContainer and MessageHeader components to observer components.
2023-08-18 00:24:10 +08:00
Rankin Zheng
d7371149f1 Move MessageContainer to components folder
- Moved MessageContainer from views to components folder.
- Updated import path for MessageContainer in ChatPanel.tsx.
2023-08-03 17:02:02 +08:00