Make ICU types stricter for inline JSX
This commit is contained in:
parent
9e7a6ea8bc
commit
6655bfc576
52 changed files with 220 additions and 200 deletions
|
@ -5,7 +5,7 @@ import type { ReactChild } from 'react';
|
|||
import React, { useCallback, useEffect, useRef } from 'react';
|
||||
import { Avatar, AvatarSize } from './Avatar';
|
||||
import { Tooltip } from './Tooltip';
|
||||
import { Intl } from './Intl';
|
||||
import { I18n } from './I18n';
|
||||
import { Theme } from '../util/theme';
|
||||
import { getParticipantName } from '../util/callingGetParticipantName';
|
||||
import { ContactName } from './conversation/ContactName';
|
||||
|
@ -124,7 +124,7 @@ function GroupCallMessage({
|
|||
switch (otherMembersRung.length) {
|
||||
case 0:
|
||||
return (
|
||||
<Intl
|
||||
<I18n
|
||||
id="icu:incomingGroupCall__ringing-you"
|
||||
i18n={i18n}
|
||||
components={{ ringer: ringerNode }}
|
||||
|
@ -132,7 +132,7 @@ function GroupCallMessage({
|
|||
);
|
||||
case 1:
|
||||
return (
|
||||
<Intl
|
||||
<I18n
|
||||
id="icu:incomingGroupCall__ringing-1-other"
|
||||
i18n={i18n}
|
||||
components={{
|
||||
|
@ -143,7 +143,7 @@ function GroupCallMessage({
|
|||
);
|
||||
case 2:
|
||||
return (
|
||||
<Intl
|
||||
<I18n
|
||||
id="icu:incomingGroupCall__ringing-2-others"
|
||||
i18n={i18n}
|
||||
components={{
|
||||
|
@ -155,7 +155,7 @@ function GroupCallMessage({
|
|||
);
|
||||
case 3:
|
||||
return (
|
||||
<Intl
|
||||
<I18n
|
||||
id="icu:incomingGroupCall__ringing-3-others"
|
||||
i18n={i18n}
|
||||
components={{
|
||||
|
@ -167,7 +167,7 @@ function GroupCallMessage({
|
|||
);
|
||||
default:
|
||||
return (
|
||||
<Intl
|
||||
<I18n
|
||||
id="icu:incomingGroupCall__ringing-many"
|
||||
i18n={i18n}
|
||||
components={{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue