👔 feat: add optimistic update for bookmark button
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 52s
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 52s
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user