Fix localization of "New call" view header

This commit is contained in:
Fedor Indutny 2025-05-27 15:13:26 -07:00 committed by GitHub
commit 15eeaa189a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,7 +151,7 @@ export function CallsNewCall({
if (directConversations.length > 0) { if (directConversations.length > 0) {
result.push({ result.push({
kind: 'header', kind: 'header',
title: 'Contacts', title: i18n('icu:contactsHeader'),
}); });
result = result.concat( result = result.concat(
directConversations.map(conversation => { directConversations.map(conversation => {
@ -165,7 +165,7 @@ export function CallsNewCall({
if (groupConversations.length > 0) { if (groupConversations.length > 0) {
result.push({ result.push({
kind: 'header', kind: 'header',
title: 'Groups', title: i18n('icu:groupsHeader'),
}); });
result = result.concat( result = result.concat(
groupConversations.map((conversation): Row => { groupConversations.map((conversation): Row => {
@ -177,7 +177,7 @@ export function CallsNewCall({
); );
} }
return result; return result;
}, [directConversations, groupConversations]); }, [directConversations, groupConversations, i18n]);
const isRowLoaded = useCallback( const isRowLoaded = useCallback(
({ index }: { index: number }) => { ({ index }: { index: number }) => {