Skip to content

Commit

Permalink
fix: link 연결
Browse files Browse the repository at this point in the history
  • Loading branch information
eejx0 committed Jul 9, 2024
1 parent b2bd4d6 commit fe2cdf5
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions services/admin/src/pages/outing/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ArrowLeft, ArrowRight } from '@/assets';
import { useModal } from '@/hooks/useModal';
import OutingListExcel from '@/components/modals/OutingListExcel';
import { Link } from 'react-router-dom';

interface HeaderProps {
date: string;
onArrowClick: (increase: number) => void;
Expand All @@ -17,14 +18,6 @@ const Header = ({ date, onArrowClick }: HeaderProps) => {
const openOutingListType = () => selectModal('OUTING_TYPE');
const { toastDispatch } = useToast();

const developmentClick = () => {
toastDispatch({
actionType: 'APPEND_TOAST',
toastType: 'INFORMATION',
message: '개발 중인 기능입니다.',
});
};

return (
<_Container>
<_DateBox>
Expand All @@ -42,7 +35,9 @@ const Header = ({ date, onArrowClick }: HeaderProps) => {
외출 유형
</Button>
<Divider height={43} width={2} margin="0" />
<Button onClick={developmentClick}>외출 시간 설정</Button>
<Link to={'/outing/time'}>
<Button>외출 시간 설정</Button>
</Link>
</_ButtonWrapper>
{modalState.selectedModal === 'OUTING_EXCEL' ? (
<OutingListExcel todayDate={date} />
Expand Down

0 comments on commit fe2cdf5

Please sign in to comment.