|
@@ -3,6 +3,7 @@
|
3
|
3
|
import React, { Component } from 'react';
|
4
|
4
|
|
5
|
5
|
import { translate } from '../../../../base/i18n';
|
|
6
|
+import { Icon, IconSip } from '../../../../base/icons';
|
6
|
7
|
|
7
|
8
|
type Props = {
|
8
|
9
|
|
|
@@ -65,8 +66,9 @@ class NumbersList extends Component<Props> {
|
65
|
66
|
(resultNumbers, number) => {
|
66
|
67
|
// The i18n-iso-countries package insists on upper case.
|
67
|
68
|
const countryCode = number.countryCode.toUpperCase();
|
68
|
|
- const countryName
|
69
|
|
- = t(`countries:countries.${countryCode}`);
|
|
69
|
+ const countryName = countryCode === 'SIP'
|
|
70
|
+ ? t('info.sip')
|
|
71
|
+ : t(`countries:countries.${countryCode}`);
|
70
|
72
|
|
71
|
73
|
if (resultNumbers[countryName]) {
|
72
|
74
|
resultNumbers[countryName].push(number);
|
|
@@ -143,7 +145,10 @@ class NumbersList extends Component<Props> {
|
143
|
145
|
if (countryCode) {
|
144
|
146
|
return (
|
145
|
147
|
<td className = 'flag-cell'>
|
146
|
|
- <i className = { `flag iti-flag ${countryCode}` } />
|
|
148
|
+ {countryCode === 'SIP'
|
|
149
|
+ ? <Icon src = { IconSip } />
|
|
150
|
+ : <i className = { `flag iti-flag ${countryCode}` } />
|
|
151
|
+ }
|
147
|
152
|
</td>);
|
148
|
153
|
}
|
149
|
154
|
|