From c991b52d2cabc4ee0475613b973e83164e3d4601 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 18 May 2017 11:45:23 +0100 Subject: [PATCH] Swap to new flag files (which are stored as GB.png) Requires https://github.com/vector-im/riot-web/pull/3953 --- src/components/views/login/CountryDropdown.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/components/views/login/CountryDropdown.js b/src/components/views/login/CountryDropdown.js index 6323b3f558..9d5de8df9c 100644 --- a/src/components/views/login/CountryDropdown.js +++ b/src/components/views/login/CountryDropdown.js @@ -19,7 +19,6 @@ import React from 'react'; import sdk from '../../../index'; import { COUNTRIES } from '../../../phonenumber'; -import { charactersToImageNode } from '../../../HtmlUtils'; const COUNTRIES_BY_ISO2 = new Object(null); for (const c of COUNTRIES) { @@ -41,7 +40,7 @@ export default class CountryDropdown extends React.Component { this.state = { searchQuery: '', - } + }; } componentWillMount() { @@ -64,13 +63,7 @@ export default class CountryDropdown extends React.Component { } _flagImgForIso2(iso2) { - // Unicode Regional Indicator Symbol letter 'A' - const RIS_A = 0x1F1E6; - const ASCII_A = 65; - return charactersToImageNode(iso2, true, - RIS_A + (iso2.charCodeAt(0) - ASCII_A), - RIS_A + (iso2.charCodeAt(1) - ASCII_A), - ); + return ; } render() { @@ -115,7 +108,7 @@ export default class CountryDropdown extends React.Component { value={value} searchEnabled={true} > {options} - + ; } }