TrendingUsers and Hashtags default count Infinity
Some checks failed
continuous-integration/drone/pr Build is failing

This commit is contained in:
Martti Malmi 2023-11-22 17:28:22 +02:00
parent b52b84e466
commit 90c00c5fa4
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import { ErrorOrOffline } from "./ErrorOrOffline";
import { HashTagHeader } from "@/Pages/HashTagsPage";
import { useLocale } from "@/IntlProvider";
export default function TrendingHashtags({ title, count = 5 }: { title?: ReactNode; count?: number }) {
export default function TrendingHashtags({ title, count = Infinity }: { title?: ReactNode; count?: number }) {
const [hashtags, setHashtags] = useState<Array<{ hashtag: string; posts: number }>>();
const [error, setError] = useState<Error>();
const { lang } = useLocale();

View File

@ -6,7 +6,7 @@ import PageSpinner from "@/Element/PageSpinner";
import NostrBandApi from "@/External/NostrBand";
import { ErrorOrOffline } from "./ErrorOrOffline";
export default function TrendingUsers({ title, count = 5 }: { title?: ReactNode; count?: number }) {
export default function TrendingUsers({ title, count = Infinity }: { title?: ReactNode; count?: number }) {
const [userList, setUserList] = useState<HexKey[]>();
const [error, setError] = useState<Error>();