👔 feat: add optimistic update for bookmark button
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 52s

This commit is contained in:
2026-03-31 21:25:20 +07:00
parent 99bf72c1af
commit 2c0ece7870
7 changed files with 76 additions and 17 deletions

View File

@ -19,6 +19,7 @@ export interface HeroSwiperProps {
slug: string;
name: string;
}[];
isInCollection: boolean;
}[];
}
@ -81,7 +82,10 @@ const HeroSwiper = (props: HeroSwiperProps) => {
</span>
</Button>
</Link>
<AddToList mediaId={slide.id} />
<AddToList
mediaId={slide.id}
isInCollection={slide.isInCollection}
/>
</div>
</div>
</SwiperSlide>