mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
[enhancement]: support toggling feature carousel
This commit is contained in:
parent
168153b211
commit
bb2f8461ed
4 changed files with 29 additions and 2 deletions
|
|
@ -33,11 +33,12 @@ const HomeRoute = () => {
|
|||
const server = useCurrentServer();
|
||||
const itemsPerPage = 15;
|
||||
const { windowBarStyle } = useWindowSettings();
|
||||
const { homeItems } = useGeneralSettings();
|
||||
const { homeFeature, homeItems } = useGeneralSettings();
|
||||
|
||||
const feature = useAlbumList({
|
||||
options: {
|
||||
cacheTime: 1000 * 60,
|
||||
enabled: homeFeature,
|
||||
staleTime: 1000 * 60,
|
||||
},
|
||||
query: {
|
||||
|
|
@ -249,7 +250,7 @@ const HomeRoute = () => {
|
|||
px="2rem"
|
||||
spacing="lg"
|
||||
>
|
||||
<FeatureCarousel data={featureItemsWithImage} />
|
||||
{homeFeature && <FeatureCarousel data={featureItemsWithImage} />}
|
||||
{sortedCarousel.map((carousel) => (
|
||||
<MemoizedSwiperGridCarousel
|
||||
key={`carousel-${carousel.uniqueId}`}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue