Merge pull request #4576 from matrix-org/t3chguy/kosovo2.0

Replace png flags and add Kosovo to country code dropdown
This commit is contained in:
Michael Telatynski 2020-05-13 09:58:10 +01:00 committed by GitHub
commit d63008f9c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
251 changed files with 26 additions and 4 deletions

View file

@ -19,7 +19,7 @@ import PropTypes from 'prop-types';
import * as sdk from '../../../index';
import { COUNTRIES } from '../../../phonenumber';
import {COUNTRIES, getEmojiFlag} from '../../../phonenumber';
import SdkConfig from "../../../SdkConfig";
import { _t } from "../../../languageHandler";
@ -80,7 +80,7 @@ export default class CountryDropdown extends React.Component {
}
_flagImgForIso2(iso2) {
return <img src={require(`../../../../res/img/flags/${iso2}.png`)} />;
return <div className="mx_Dropdown_option_emoji">{ getEmojiFlag(iso2) }</div>;
}
_getShortOption(iso2) {