Skip to content

Commit

Permalink
fix: sending 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
abcxj123 committed Jun 11, 2024
1 parent 827ec32 commit 3dea7f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/pages/moneyBox/MoneyBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';
import { ApiClient } from '../../apis/apiClient';
import { AlarmAnimation } from '../../components/organisms/AlarmAnimation';
import { MdAccountBalance } from 'react-icons/md';
import { FcLock, FcMoneyTransfer, FcNews } from 'react-icons/fc';
import { FcLock, FcMoneyTransfer } from 'react-icons/fc';
import { PiSirenFill } from 'react-icons/pi';

export const MoneyBox = () => {
const location = useLocation();
const navigate = useNavigate();
const queryClient = useQueryClient();

const [showStepModal, setShowStepModal] = useState<boolean>(false);
const [showModal, setShowModal] = useState<boolean>(false);
const [showChoiceModal, setShowChoiceModal] = useState<boolean>(false);
Expand All @@ -29,6 +30,8 @@ export const MoneyBox = () => {
prev: boolean;
};

console.log(locationState);

const { data: moneyBoxData, isSuccess: querySuccess } = useQuery({
queryKey: ['moneyBox'],
queryFn: () => {
Expand Down
11 changes: 5 additions & 6 deletions src/pages/moneyBox/Sending.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,11 @@ export const Sending = () => {
setRe(!re);
return;
} else if (page === 5) {
navigate('/moneyBox'),
{
state: {
prev: true,
},
};
navigate('/moneyBox', {
state: {
prev: true,
},
});
}
};

Expand Down

0 comments on commit 3dea7f2

Please sign in to comment.