Skip to content

Commit

Permalink
Refactor: 카드 저장버튼 클릭시 마이페이지로 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
cdm1263 committed Feb 5, 2024
1 parent ce918af commit 97eae1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/cardMaker/CardEditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ import { useGetAllPokemon } from '@/query/qeuries';
import SearchPokemon from './searchPokemon/SearchPokemon';
import { useEffect } from 'react';
import SelectPokemonMobile from './selectPokemon/SelectPokemonMobile';
import { useNavigate } from 'react-router-dom';

const CardEditPage = () => {
const { user } = useUserStore();
const navigate = useNavigate();
const {
pokemonData,
pokemonNickName1,
Expand Down Expand Up @@ -65,6 +67,8 @@ const CardEditPage = () => {
uid: user.uid,
});
}

navigate('/mypage');
};

const pokemonNickName = {
Expand Down

0 comments on commit 97eae1e

Please sign in to comment.