Skip to content

Commit a863853

Browse files
committed
chore
1 parent 9b0f8d3 commit a863853

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

โ€Žsrc/features/post/components/WriteLayout/index.tsxโ€Ž

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@ import { resetAllStores } from '../../stores/StoreReset';
1616
import { useCollectPostData } from '../../hooks/useCollectPostData';
1717

1818
const MAX_STEP = 6;
19-
2019
const steps = [<Step1 />, <Step2 />, <Step3 />, <Step4 />, <Step5 />, <Step6 />];
2120

2221
const WriteLayout = () => {
2322
const [step, setStep] = useState(1);
24-
const navigate = useNavigate();
25-
2623
const { mutate: postItem } = usePostItem();
24+
const navigate = useNavigate();
2725
const data = useCollectPostData();
2826
const files = useStep5Store(state => state.files);
2927

@@ -42,7 +40,6 @@ const WriteLayout = () => {
4240
{
4341
onSuccess: res => {
4442
const itemId = res.data.itemId;
45-
console.log(itemId);
4643
resetAllStores();
4744
navigate(`/detail/${itemId}`, { replace: true });
4845
},

โ€Žsrc/pages/DetailPage/index.tsxโ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ const DetailPage = () => {
1212
const { id } = useParams();
1313
const { data, isLoading } = useGetItemDetail(Number(id));
1414

15-
console.log(data);
16-
1715
// TODO: ๋” ์˜ˆ์œ ๋ณด์—ฌ์ฃผ๊ธฐ
1816
if (isLoading) return <div>Loading...</div>;
1917
if (data === undefined) return <div>์ž˜๋ชป๋œ ์ ‘๊ทผ์ž…๋‹ˆ๋‹ค</div>;

0 commit comments

Comments
ย (0)