Skip to content

Commit

Permalink
[FE] REFACT: getClubInfo와 clickMoreButton의 중복된 setTimeout clickMoreBu…
Browse files Browse the repository at this point in the history
…tton에서 제거#1677
  • Loading branch information
jnkeniaem committed Sep 4, 2024
1 parent 92a5c31 commit 048e6c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
ClubInfoResponseDto,
ClubUserResponseDto,
} from "@/Cabinet/types/dto/club.dto";
import useDebounce from "@/Cabinet/hooks/useDebounce";
import useMenu from "@/Cabinet/hooks/useMenu";

export type TClubMemberModalState = "addModal";
Expand Down Expand Up @@ -37,17 +36,10 @@ const ClubMemberListContainer = ({
const [targetClubUser, setTargetClubUser] = useRecoilState(
targetClubUserInfoState
);
const { debounce } = useDebounce();

const clickMoreButton = () => {
setIsLoading(true);
debounce(
"clubMemberList",
() => {
setPage(page + 1);
},
100
);
setPage(page + 1);
};

const selectClubMemberOnClick = (member: ClubUserResponseDto) => {
Expand Down

0 comments on commit 048e6c9

Please sign in to comment.