forked from Kieran/snort
chore: Update translations
This commit is contained in:
parent
3e52bb755e
commit
e7e7fdc14d
@ -2,7 +2,7 @@ import { useLocale } from "@/IntlProvider";
|
|||||||
import NostrBandApi from "@/External/NostrBand";
|
import NostrBandApi from "@/External/NostrBand";
|
||||||
import { FormattedMessage } from "react-intl";
|
import { FormattedMessage } from "react-intl";
|
||||||
import useCachedFetch from "@/Hooks/useCachedFetch";
|
import useCachedFetch from "@/Hooks/useCachedFetch";
|
||||||
import {ErrorOrOffline} from "@/Element/ErrorOrOffline";
|
import { ErrorOrOffline } from "@/Element/ErrorOrOffline";
|
||||||
|
|
||||||
export function TrendingHashTagsLine(props: { onClick: (tag: string) => void }) {
|
export function TrendingHashTagsLine(props: { onClick: (tag: string) => void }) {
|
||||||
const { lang } = useLocale();
|
const { lang } = useLocale();
|
||||||
|
@ -26,11 +26,7 @@ export default function TrendingNotes({ count = Infinity, small = false }) {
|
|||||||
data: trendingNotesData,
|
data: trendingNotesData,
|
||||||
isLoading,
|
isLoading,
|
||||||
error,
|
error,
|
||||||
} = useCachedFetch(
|
} = useCachedFetch(trendingNotesUrl, storageKey, data => data.notes.map(a => a.event));
|
||||||
trendingNotesUrl,
|
|
||||||
storageKey,
|
|
||||||
data => data.notes.map(a => a.event),
|
|
||||||
);
|
|
||||||
|
|
||||||
const login = useLogin();
|
const login = useLogin();
|
||||||
const displayAsInitial = small ? "list" : login.feedDisplayAs ?? "list";
|
const displayAsInitial = small ? "list" : login.feedDisplayAs ?? "list";
|
||||||
|
Loading…
Reference in New Issue
Block a user