chore: Update translations

This commit is contained in:
Kieran 2024-03-05 13:08:41 +00:00
parent afee63061a
commit 905015f45d
4 changed files with 23 additions and 19 deletions

View File

@ -7,7 +7,7 @@ import { FormattedMessage } from "react-intl";
import VideoGrid from "./video-grid";
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 mutedHosts = new Set(getTagValues(login?.muted.tags ?? [], "p"));
const tags = login?.follows.tags ?? [];

View File

@ -18,7 +18,7 @@ export function useLiveStreams(feed: Array<TaggedNostrEvent>, oldest?: number) {
const feedSorted = useMemo(() => {
if (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));
}
return [];

View File

@ -197,10 +197,11 @@ function SearchBar() {
<Icon
name="search"
className="max-xl:text-black mx:text-layer-4 max-xl:ml-4 max-xl:my-1"
size={16}
size={16}
onClick={() => {
navigate("/search")
}}/>
navigate("/search");
}}
/>
</div>
);
}

View File

@ -49,21 +49,24 @@ export default function SearchPage() {
className="text-layer-4 ml-4 my-1"
size={16}
onClick={() => {
navigate("/search")
}} />
navigate("/search");
}}
/>
</div>
{term && <>
<h2 className="mb-4">
<FormattedMessage
defaultMessage="Search results: {term}"
id="A1zT+z"
values={{
term,
}}
/>
</h2>
<VideoGridSorted evs={results} showAll={true} />
</>}
{term && (
<>
<h2 className="mb-4">
<FormattedMessage
defaultMessage="Search results: {term}"
id="A1zT+z"
values={{
term,
}}
/>
</h2>
<VideoGridSorted evs={results} showAll={true} />
</>
)}
</div>
);
}