Skip to content

Commit

Permalink
Merge pull request #2681 from SUI-Components/feat/add_svg_local_in_su…
Browse files Browse the repository at this point in the history
…i_phone_input

feat(components/molecule/phoneInput): Change to our S3
  • Loading branch information
xaviermariaconejo authored Dec 28, 2023
2 parents f192ab3 + af6c317 commit 181793a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/molecule/phoneInput/src/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ export const phoneValidationType = {
// https://www.npmjs.com/package/country-flag-icons
// You can easily check here all the flags that provides it:
// https://purecatamphetamine.github.io/country-flag-icons/3x2/index.html

// For now we have deployed to our own S3
// For example: ES -> https://frtassets.fotocasa.es/ut/statics/img/ES.svg
export const PREFIXES = [
{
value: 'ES',
label: 'España',
countryCode: '+34',
landlinePrefixs: ['9'],
flag: 'http://purecatamphetamine.github.io/country-flag-icons/3x2/ES.svg',
flag: 'https://frtassets.fotocasa.es/ut/statics/img/ES.svg',
mask: {
mobileMask: '000 000 000',
landlineMask: '00 000 00 00'
Expand All @@ -26,7 +29,7 @@ export const PREFIXES = [
label: 'Francia',
countryCode: '+33',
landlinePrefixs: ['1', '2', '3', '4', '5'],
flag: 'http://purecatamphetamine.github.io/country-flag-icons/3x2/FR.svg',
flag: 'https://frtassets.fotocasa.es/ut/statics/img/FR.svg',
mask: {
mobileMask: '0 00 00 00 00',
landlineMask: '0 00 00 00 00'
Expand All @@ -37,7 +40,7 @@ export const PREFIXES = [
label: 'Portugal',
countryCode: '+351',
landlinePrefixs: ['2'],
flag: 'http://purecatamphetamine.github.io/country-flag-icons/3x2/PT.svg',
flag: 'https://frtassets.fotocasa.es/ut/statics/img/PT.svg',
mask: {
mobileMask: '0 0000 0000',
landlineMask: '00 000 0000'
Expand All @@ -48,7 +51,7 @@ export const PREFIXES = [
label: 'Andorra',
countryCode: '+376',
landlinePrefixs: ['8'],
flag: 'http://purecatamphetamine.github.io/country-flag-icons/3x2/AD.svg',
flag: 'https://frtassets.fotocasa.es/ut/statics/img/AD.svg',
mask: {
mobileMask: '000 000',
landlineMask: '000 000'
Expand Down

0 comments on commit 181793a

Please sign in to comment.