react-intl-phone-input
Advanced tools
Comparing version 4.5.4 to 4.5.5
{ | ||
"name": "react-intl-phone-input", | ||
"version": "4.5.4", | ||
"version": "4.5.5", | ||
"description": "Telephone input component. Rewrite intl-tel-input in React.js.", | ||
@@ -31,2 +31,3 @@ "author": "patw", | ||
"react-input-mask": "^1.2.2", | ||
"react-intl-phone-input": "^4.5.4", | ||
"react-style-proptype": "^3.0.0", | ||
@@ -33,0 +34,0 @@ "underscore.deferred": "^0.4.0" |
import React, { Component } from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import IntlTelInput from 'react-intl-tel-input'; // eslint-disable-line import/no-extraneous-dependencies | ||
import IntlTelInput from 'react-intl-phone-input'; // eslint-disable-line import/no-extraneous-dependencies | ||
@@ -20,3 +20,3 @@ // import 'file-loader?name=libphonenumber.js!./libphonenumber.js'; | ||
const lookup = (callback) => { | ||
loadJSONP('http://ipinfo.io', 'sendBack'); | ||
loadJSONP('//ipinfo.io', 'sendBack'); | ||
window.sendBack = (resp) => { | ||
@@ -37,3 +37,3 @@ const countryCode = (resp && resp.country) ? resp.country : ''; | ||
this.state = { | ||
phone1: '+1', | ||
phone1: '+79263488996', | ||
phone2: '', | ||
@@ -40,0 +40,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1662871
8
8780