chore: Update translations

This commit is contained in:
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 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 ?? [];

View File

@ -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 [];

View File

@ -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>
); );
} }

View File

@ -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>
); );
} }