mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 04:12:41 +03:00
Fix List not respecting boosts carousel settings
This commit is contained in:
parent
1d897ad4c5
commit
7e302770d1
1 changed files with 4 additions and 2 deletions
|
@ -4,6 +4,7 @@ import { Menu, MenuItem } from '@szhsin/react-menu';
|
|||
import { useEffect, useRef, useState } from 'preact/hooks';
|
||||
import { InView } from 'react-intersection-observer';
|
||||
import { useNavigate, useParams } from 'react-router-dom';
|
||||
import { useSnapshot } from 'valtio';
|
||||
|
||||
import AccountBlock from '../components/account-block';
|
||||
import Icon from '../components/icon';
|
||||
|
@ -13,12 +14,13 @@ import Modal from '../components/modal';
|
|||
import Timeline from '../components/timeline';
|
||||
import { api } from '../utils/api';
|
||||
import { filteredItems } from '../utils/filters';
|
||||
import { saveStatus } from '../utils/states';
|
||||
import states, { saveStatus } from '../utils/states';
|
||||
import useTitle from '../utils/useTitle';
|
||||
|
||||
const LIMIT = 20;
|
||||
|
||||
function List(props) {
|
||||
const snapStates = useSnapshot(states);
|
||||
const { masto, instance } = api();
|
||||
const id = props?.id || useParams()?.id;
|
||||
const navigate = useNavigate();
|
||||
|
@ -93,7 +95,7 @@ function List(props) {
|
|||
fetchItems={fetchList}
|
||||
checkForUpdates={checkForUpdates}
|
||||
useItemID
|
||||
boostsCarousel
|
||||
boostsCarousel={snapStates.settings.boostsCarousel}
|
||||
allowFilters
|
||||
// refresh={reloadCount}
|
||||
headerStart={
|
||||
|
|
Loading…
Reference in a new issue