Skip to content

Commit

Permalink
Merge pull request #363 from TripInfoWeb/dev_etc
Browse files Browse the repository at this point in the history
Dev etc
  • Loading branch information
ssssksss authored Sep 22, 2024
2 parents cd30838 + 23063fc commit 7451e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/common/ReactToastifyComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ReactToastifyComponent = () => {
}, [toastifyStore]);

return (
<div className="fixed z-999 text-[1rem] w-full translate-y-[4rem]">
<div className="fixed z-50 text-[1rem] w-full translate-y-[4rem]">
<ToastContainer
position={"top-right"} // 알람 위치 지정
autoClose={1000} // 자동 off 시간
Expand Down
7 changes: 6 additions & 1 deletion src/containers/gathering/read/GatheringCardListContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import useModalState from "@/hooks/useModalState";
import useAuthStore from "@/store/authStore";
import { Gathering } from "@/types/GatheringDto";
import { useRouter, useSearchParams } from "next/navigation";
import { useEffect, useState } from "react";
import { useEffect, useRef, useState } from "react";

const SkeletonGatheringList = () => {
return (
Expand All @@ -29,6 +29,7 @@ const GatheringCardListContainer = () => {
const authStore = useAuthStore();
const router = useRouter();
const modalState = useModalState();
const initRef = useRef(true);
const [currentPage, setCurrentPage] = useState(
searchParams.get("page") ? Number(searchParams.get("page")) : 1,
);
Expand All @@ -55,6 +56,10 @@ const GatheringCardListContainer = () => {
};

useEffect(() => {
if (initRef.current) {
initRef.current = false;
return;
}
const temp = async () => {
try {
const url = new URL(window.location.href);
Expand Down

0 comments on commit 7451e2e

Please sign in to comment.