kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Refactor code
rodzic
80adc5307d
commit
95010acd9e
|
@ -305,7 +305,8 @@ const CreateFilter = () => {
|
|||
const MediaFilter = () => {
|
||||
const intl = useIntl();
|
||||
const dispatch = useAppDispatch();
|
||||
const filters = useAppSelector((state) => state.search_filter).slice(4, 8);
|
||||
const filters = useAppSelector((state) => state.search_filter.filter(filter => ['all', 'image only', 'video only', 'no media'].includes(filter.name.toLowerCase())));
|
||||
|
||||
|
||||
const mediaFilters = useMemo(() => ({
|
||||
all: intl.formatMessage(messages.all),
|
||||
|
|
|
@ -20,6 +20,8 @@ import {
|
|||
useSuggestions,
|
||||
} from 'soapbox/queries/suggestions.ts';
|
||||
|
||||
import 'swiper/css/navigation';
|
||||
import 'swiper/css/pagination';
|
||||
import 'swiper/css';
|
||||
|
||||
const PopularAccounts = ({ id }: { id: string }) => {
|
||||
|
|
Ładowanie…
Reference in New Issue