TrendingUsers and Hashtags default count Infinity
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
b52b84e466
commit
90c00c5fa4
@ -6,7 +6,7 @@ import { ErrorOrOffline } from "./ErrorOrOffline";
|
|||||||
import { HashTagHeader } from "@/Pages/HashTagsPage";
|
import { HashTagHeader } from "@/Pages/HashTagsPage";
|
||||||
import { useLocale } from "@/IntlProvider";
|
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 [hashtags, setHashtags] = useState<Array<{ hashtag: string; posts: number }>>();
|
||||||
const [error, setError] = useState<Error>();
|
const [error, setError] = useState<Error>();
|
||||||
const { lang } = useLocale();
|
const { lang } = useLocale();
|
||||||
|
@ -6,7 +6,7 @@ import PageSpinner from "@/Element/PageSpinner";
|
|||||||
import NostrBandApi from "@/External/NostrBand";
|
import NostrBandApi from "@/External/NostrBand";
|
||||||
import { ErrorOrOffline } from "./ErrorOrOffline";
|
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 [userList, setUserList] = useState<HexKey[]>();
|
||||||
const [error, setError] = useState<Error>();
|
const [error, setError] = useState<Error>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user