Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mcataford committed Mar 1, 2020
1 parent db2a995 commit 12139cc
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions src/components/CountryList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
Expand Down Expand Up @@ -31,7 +30,7 @@ export default class CountryList extends Component {
}

setDropdownPosition = () => {
this.listElement.classList.remove('hide')
this.listElement.classList.remove('hide');
const inputTop = this.props.inputTop;
const windowTop =
window.pageYOffset !== undefined
Expand Down Expand Up @@ -59,7 +58,7 @@ export default class CountryList extends Component {
: '';

this.listElement.style.top = cssTop;
this.listElement.classList.remove('v-hide')
this.listElement.classList.remove('v-hide');
};

appendListItem = (countries, isPreferred = false) => {
Expand Down Expand Up @@ -115,7 +114,7 @@ export default class CountryList extends Component {

const preferredOptions = this.appendListItem(preferredCountries, true);
const allOptions = this.appendListItem(countries);
const divider = <div className="divider"/>
const divider = <div className="divider" />;

return (
<ul
Expand Down
2 changes: 1 addition & 1 deletion src/components/FlagDropDown.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class FlagDropDown extends Component {

genArrow = () => {
const { allowDropdown, showDropdown } = this.props;
const arrowClasses = classNames('arrow', showDropdown ? 'up' : 'down')
const arrowClasses = classNames('arrow', showDropdown ? 'up' : 'down');

return allowDropdown ? <div className={arrowClasses} /> : null;
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/IntlTelInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import AllCountries from './AllCountries';
import FlagDropDown from './FlagDropDown';
import TelInput from './TelInput';
import utils from './utils';
import { KEYS } from './constants'
import { KEYS } from './constants';
import '../styles/intlTelInput.scss';

const mobileUserAgentRegexp = /Android.+Mobile|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;
Expand Down Expand Up @@ -1017,7 +1017,7 @@ class IntlTelInput extends Component {
this.wrapperClass['separate-dial-code'] = this.props.separateDialCode;

if (this.isMobile && this.props.useMobileFullscreenDropdown) {
document.querySelector('body').classList.add('iti-mobile')
document.querySelector('body').classList.add('iti-mobile');
// on mobile, we want a full screen dropdown, so we must append it to the body
this.dropdownContainer = 'body';
window.addEventListener('scroll', this.handleWindowScroll);
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default {

return {};
},

findIndex(items, predicate) {
let index = -1;

Expand Down

0 comments on commit 12139cc

Please sign in to comment.