Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] fix/#524 모아보기 상태에서 핀 조회가 안되는 오류 수정 #525

Merged
merged 1 commit into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions frontend/src/components/PinsOfTopic/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import TopicInfo from '../TopicInfo';

interface PinsOfTopicProps {
topicId: string;
idx: number;
topicDetail: TopicDetailProps;
setSelectedPinId: React.Dispatch<React.SetStateAction<number | null>>;
setIsEditPinDetail: React.Dispatch<React.SetStateAction<boolean>>;
Expand All @@ -14,7 +13,6 @@ interface PinsOfTopicProps {

const PinsOfTopic = ({
topicId,
idx,
topicDetail,
setSelectedPinId,
setIsEditPinDetail,
Expand All @@ -24,7 +22,6 @@ const PinsOfTopic = ({
<Wrapper>
<TopicInfo
topicId={topicId}
idx={idx}
topicImage={topicDetail.image}
topicTitle={topicDetail.name}
topicCreator={topicDetail.creator}
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/components/TopicInfo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import UpdatedTopicInfo from './UpdatedTopicInfo';

export interface TopicInfoProps {
topicId: string;
idx: number;
topicImage: string;
topicTitle: string;
topicCreator: string;
Expand All @@ -36,7 +35,6 @@ export interface TopicInfoProps {

const TopicInfo = ({
topicId,
idx,
topicImage,
topicTitle,
topicCreator,
Expand Down Expand Up @@ -150,7 +148,7 @@ const TopicInfo = ({
<ButtonsWrapper>
<AddSeeTogether
isInAtlas={isInAtlas}
id={Number(topicId.split(',')[idx])}
id={Number(topicId)}
jiwonh423 marked this conversation as resolved.
Show resolved Hide resolved
getTopicsFromServer={setTopicsFromServer}
>
{isInAtlas ? (
Expand All @@ -162,7 +160,7 @@ const TopicInfo = ({
<Space size={5} />
<AddFavorite
isBookmarked={isBookmarked}
id={Number(topicId.split(',')[idx])}
id={Number(topicId)}
getTopicsFromServer={setTopicsFromServer}
>
{isBookmarked ? <FavoriteSVG /> : <FavoriteNotFilledSVG />}
Expand Down
1 change: 0 additions & 1 deletion frontend/src/pages/SelectedTopic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ const SelectedTopic = () => {
<Fragment key={topicDetail.id}>
<PinsOfTopic
topicId={topicId.split(',')[idx]}
idx={idx}
topicDetail={topicDetail}
setSelectedPinId={setSelectedPinId}
setIsEditPinDetail={setIsEditPinDetail}
Expand Down
Loading