홈화면 바로가기 관련 수정

This commit is contained in:
focp212@naver.com
2025-09-29 13:45:31 +09:00
parent dc4777b270
commit 3d22544b9a
5 changed files with 40 additions and 13 deletions

View File

@@ -5,8 +5,11 @@ import { HomeMonthParams, HomeMonthResponse, HomeOverviewParams, HomeOverviewRes
import { useHomeOverviewMutation } from '../api/use-home-overview-mutation';
import { useHomeMonthwMutation } from '../api/use-home-month-mutation';
import { NumericFormat } from 'react-number-format';
import { useNavigate } from '@/shared/lib/hooks';
import { PATHS } from '@/shared/constants/paths';
export const BoxContainer2 = () => {
const { navigate } = useNavigate();
const [mid, setMid] = useState<string>('nictest001m');
const [searchDate, setSearchDate] = useState<string>(moment().format('YYYY-MM-DD'));
@@ -71,6 +74,10 @@ export const BoxContainer2 = () => {
callOverview();
}, []);
const onClickToNavigate = () => {
navigate(PATHS.settlement.list);
};
return (
<>
<div>
@@ -99,7 +106,11 @@ export const BoxContainer2 = () => {
></NumericFormat>
</span>
<a className="arrow">
<img src={ IMAGE_ROOT + '/ico_arrow.svg' } alt="오늘 매출 바로가기" />
<img
src={ IMAGE_ROOT + '/ico_arrow.svg' }
alt="오늘 매출 바로가기"
onClick={ onClickToNavigate }
/>
</a>
</div>
</div>
@@ -124,7 +135,11 @@ export const BoxContainer2 = () => {
></NumericFormat>
</span>
<a className="arrow">
<img src={ IMAGE_ROOT + '/ico_arrow.svg' } alt="오늘 매출 바로가기" />
<img
src={ IMAGE_ROOT + '/ico_arrow.svg' }
alt="오늘 매출 바로가기"
onClick={ onClickToNavigate }
/>
</a>
</div>
</div>