chore: Update translations
This commit is contained in:
@ -7,7 +7,7 @@ import { FormattedMessage } from "react-intl";
|
|||||||
import VideoGrid from "./video-grid";
|
import VideoGrid from "./video-grid";
|
||||||
import { VideoTile } from "./video-tile";
|
import { VideoTile } from "./video-tile";
|
||||||
|
|
||||||
export default function VideoGridSorted({ evs, showAll }: { evs: Array<TaggedNostrEvent>, showAll?: boolean }) {
|
export default function VideoGridSorted({ evs, showAll }: { evs: Array<TaggedNostrEvent>; showAll?: boolean }) {
|
||||||
const login = useLogin();
|
const login = useLogin();
|
||||||
const mutedHosts = new Set(getTagValues(login?.muted.tags ?? [], "p"));
|
const mutedHosts = new Set(getTagValues(login?.muted.tags ?? [], "p"));
|
||||||
const tags = login?.follows.tags ?? [];
|
const tags = login?.follows.tags ?? [];
|
||||||
|
@ -18,7 +18,7 @@ export function useLiveStreams(feed: Array<TaggedNostrEvent>, oldest?: number) {
|
|||||||
const feedSorted = useMemo(() => {
|
const feedSorted = useMemo(() => {
|
||||||
if (feed) {
|
if (feed) {
|
||||||
return feed
|
return feed
|
||||||
.filter(a => a.created_at > (oldest ?? (unixNow() - 7 * DAY)))
|
.filter(a => a.created_at > (oldest ?? unixNow() - 7 * DAY))
|
||||||
.filter(a => !import.meta.env.VITE_SINGLE_PUBLISHER || import.meta.env.VITE_SINGLE_PUBLISHER === getHost(a));
|
.filter(a => !import.meta.env.VITE_SINGLE_PUBLISHER || import.meta.env.VITE_SINGLE_PUBLISHER === getHost(a));
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
|
@ -197,10 +197,11 @@ function SearchBar() {
|
|||||||
<Icon
|
<Icon
|
||||||
name="search"
|
name="search"
|
||||||
className="max-xl:text-black mx:text-layer-4 max-xl:ml-4 max-xl:my-1"
|
className="max-xl:text-black mx:text-layer-4 max-xl:ml-4 max-xl:my-1"
|
||||||
size={16}
|
size={16}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate("/search")
|
navigate("/search");
|
||||||
}}/>
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -49,21 +49,24 @@ export default function SearchPage() {
|
|||||||
className="text-layer-4 ml-4 my-1"
|
className="text-layer-4 ml-4 my-1"
|
||||||
size={16}
|
size={16}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate("/search")
|
navigate("/search");
|
||||||
}} />
|
}}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
{term && <>
|
{term && (
|
||||||
<h2 className="mb-4">
|
<>
|
||||||
<FormattedMessage
|
<h2 className="mb-4">
|
||||||
defaultMessage="Search results: {term}"
|
<FormattedMessage
|
||||||
id="A1zT+z"
|
defaultMessage="Search results: {term}"
|
||||||
values={{
|
id="A1zT+z"
|
||||||
term,
|
values={{
|
||||||
}}
|
term,
|
||||||
/>
|
}}
|
||||||
</h2>
|
/>
|
||||||
<VideoGridSorted evs={results} showAll={true} />
|
</h2>
|
||||||
</>}
|
<VideoGridSorted evs={results} showAll={true} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user