File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,7 @@ export const IncomingCallDialog = () => {
83
83
return (
84
84
< SessionWrapperModal
85
85
headerChildren = {
86
- < ModalBasicHeader
87
- title = { tr ( 'callsIncoming' , { name : from ?? tr ( 'unknown' ) } ) }
88
- />
86
+ < ModalBasicHeader title = { tr ( 'callsIncoming' , { name : from ?? tr ( 'unknown' ) } ) } />
89
87
}
90
88
buttonChildren = {
91
89
< ModalActionsContainer >
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
import { formatNumber } from '../../../util/i18n/formatting/generics' ;
12
12
import { useHasPro } from '../../../hooks/useHasPro' ;
13
13
import { useIsProAvailable } from '../../../hooks/useIsProAvailable' ;
14
- import { localize } from '../../../localization/localeTools' ;
14
+ import { tr } from '../../../localization/localeTools' ;
15
15
16
16
export type CharacterCountProps = {
17
17
count : number ;
@@ -68,9 +68,9 @@ export function CharacterCount({ count }: CharacterCountProps) {
68
68
< SessionTooltip
69
69
horizontalPosition = "center"
70
70
verticalPosition = "bottom"
71
- content = { localize (
72
- pastLimit ? 'remainingCharactersOverTooltip' : 'remainingCharactersTooltip'
73
- ) . withArgs ( { count : pastLimit ? remaining * - 1 : remaining } ) }
71
+ content = { tr ( pastLimit ? 'remainingCharactersOverTooltip' : 'remainingCharactersTooltip' , {
72
+ count : pastLimit ? remaining * - 1 : remaining ,
73
+ } ) }
74
74
dataTestId = "tooltip-character-count"
75
75
>
76
76
< StyledRemainingNumber pastLimit = { pastLimit } >
Original file line number Diff line number Diff line change @@ -92,10 +92,7 @@ export const OverlayClosedGroupV2 = () => {
92
92
// the same is valid with groups count < 1
93
93
94
94
if ( selectedMemberIds . length < 1 ) {
95
- ToastUtils . pushToastError (
96
- 'pickClosedGroupMember' ,
97
- tr ( 'groupCreateErrorNoMembers' )
98
- ) ;
95
+ ToastUtils . pushToastError ( 'pickClosedGroupMember' , tr ( 'groupCreateErrorNoMembers' ) ) ;
99
96
return ;
100
97
}
101
98
if ( selectedMemberIds . length >= VALIDATION . CLOSED_GROUP_SIZE_LIMIT ) {
You can’t perform that action at this time.
0 commit comments