Skip to content

Commit

Permalink
Merge pull request #66 from MARU-EGG/TSK-999-HotFix
Browse files Browse the repository at this point in the history
refactor: message type change info to warnings
  • Loading branch information
swgvenghy authored Dec 5, 2024
2 parents dbedc45 + a362166 commit cb74cca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/ui/components/molecule/chat-section/chat-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { QuestionPresetButtons } from '../../user-domain/question-preset-buttons
import Dropdown from '../../atom/dropdown/dropdown';
import { getDetailType } from '../../../../api/get-admission-detail-type.query';
import { useUserDetailTypeStore } from '../../../../store/user-detail-type-store';
import { ConfigProvider } from 'antd';

const ChatSection: React.FC = () => {
const { type, category } = useTypeStore();
Expand All @@ -26,7 +27,7 @@ const ChatSection: React.FC = () => {
messageApi.open({
type,
content,
duration: 3,
duration: 7,
style: {
position: 'absolute',
width: 'max-content',
Expand Down Expand Up @@ -83,7 +84,7 @@ const ChatSection: React.FC = () => {

React.useEffect(() => {
if (category && messages[messages.length - 1]?.role === 'system' && !loading) {
showMessage('info', '반드시 첨부자료를 통해 정확한 정보를 확인하세요');
showMessage('warning', '반드시 첨부자료를 통해 정확한 정보를 확인하세요');
}
}, [messages, category, loading]);

Expand Down Expand Up @@ -116,7 +117,8 @@ const ChatSection: React.FC = () => {

return (
<div className="max-h-100vh w-full overflow-y-auto px-4 pb-24 pt-16">
{contextHolder}
<ConfigProvider theme={{ token: { colorWarning: '#FF0000' } }}>{contextHolder}</ConfigProvider>

<ChatCard
content={`안녕하세요.
명지대학교 입학 AI챗봇 마루에그입니다!
Expand Down

0 comments on commit cb74cca

Please sign in to comment.