From 36c5a9d09b6b273d9f9dd12ac2038be7c41d2ba2 Mon Sep 17 00:00:00 2001 From: Gucheng Wang Date: Sat, 25 Feb 2023 15:08:08 +0800 Subject: [PATCH] Sort country list --- web/src/Setting.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/Setting.js b/web/src/Setting.js index 94eadd3cd33d..3006661247c7 100644 --- a/web/src/Setting.js +++ b/web/src/Setting.js @@ -92,7 +92,7 @@ export const OtherProviderInfo = { url: "https://www.huaweicloud.com/product/msgsms.html", }, "Twilio SMS": { - logo: `${StaticBaseUrl}/img/social_twilio.png`, + logo: `${StaticBaseUrl}/img/social_twilio.svg`, url: "https://www.twilio.com/messaging", }, "SmsBao SMS": { @@ -216,7 +216,8 @@ export function getCountriesData(countryCodes = phoneNumber.getCountries()) { phone: phoneNumber.getCountryCallingCode(countryCode), }; } - }); + }).filter(item => item.name !== "") + .sort((a, b) => a.phone - b.phone); } export function countryFlag(country) {