Skip to content

Commit

Permalink
Merge pull request #227 from Hanbang-NeungYo-Baeksook/develop
Browse files Browse the repository at this point in the history
[Feat] 🍀상품 바로가기 링크 추가
  • Loading branch information
hhbb0081 authored Dec 29, 2024
2 parents 2edd7ad + 13b3088 commit 20aff05
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
19 changes: 18 additions & 1 deletion src/pages/AiAnswer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,24 @@ export function AiAnswer() {
}}
className='whitespace-pre-line px-2 py-3 text-left text-[1rem] font-bold text-[#464646]'
>
{answer.response}
<div>
{answer.recommend_id && (
<a
className='text-[1.25rem] font-bold text-main'
href={
{
411: 'https://www.hanabank.com/fund/index.do',
414: 'https://www.hanabank.com/pension/index.do?contentUrl=/pension/retirement/wppns100_01i.do?_menuNo=99006#//HanaBank',
416: 'https://www.kebhana.com/cont/mall/mall08/mall0802/mall080204/1420271_115200.jsp?_menuNo=98786',
418: 'https://www.kebhana.com/cont/mall/mall08/mall0802/mall080204/1431602_115200.jsp?_menuNo=98786',
}[answer.recommend_id]
}
>
👉 상품 바로가기 👈
</a>
)}
</div>
<span>{answer.response}</span>
</p>
</div>
</div>
Expand Down
16 changes: 7 additions & 9 deletions src/pages/AiQuestion/index.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
import ArrowAi from '@/assets/icons/arrowAI.svg';
import Loading from '@/components/Chat/Loading';
import Header from '@/components/Header/Header';
import Nav from '@/components/Nav/Nav';
import { Button } from '@/components/ui/button';
import useGetCustomerDetail from '@/hooks/query/customer/useGetCustomerDetail';
import usePostRecommendList from '@/hooks/query/customer/usePostRecommendList';
import { contentAtom, isLoadingAtom } from '@/stores';
import { useAtom } from 'jotai';
import { useRef, useState } from 'react';
import { useNavigate } from 'react-router-dom';
import ArrowAi from '@/assets/icons/arrowAI.svg';
import usePostRecommendList from '@/hooks/query/customer/usePostRecommendList';
import Loading from '@/components/Chat/Loading';
import Header from '@/components/Header/Header';
import useGetCustomerDetail from '@/hooks/query/customer/useGetCustomerDetail';

const recommendedQuestions = [
'통장 비밀번호는 숫자만 사용할 수 있나요?',
'지방세 고지서를 모바일로 받기 위한 서비스 신청 절차는 어떻게 되나요?',
'미성년자인 경우에도 펀드에 가입할 수 있는지, 가능하다면 절차나 필요한 조건이 무엇인지 궁금합니다',
'인터넷으로 신용 대출 신청을 완료했는데, 결과를 확인할 수 있는 시점이 언제인지 알고 싶습니다.',
'노후 준비를 어떻게 시작해야할까요?',
'하나은행 신용대출 상품들을 비교해서 알려주세요. 직장인인데 받을 수 있는 한도가 궁금합니다.',
];

export function AiQuestion() {
Expand Down
3 changes: 1 addition & 2 deletions src/pages/ReservationDetail/Visit/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ export function ReservationDetailVisitPage() {
if (visit?.waiting_amount === 1) {
showToast(toast, '곧 고객님의 상담이 시작됩니다. 대기해주세요');
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
}, [toast, visit?.waiting_amount]);

if (isLoading || !visit) {
return <LoadingBasic />;
Expand Down

0 comments on commit 20aff05

Please sign in to comment.