Skip to content
Snippets Groups Projects
Commit 882423f6 authored by MB Pro's avatar MB Pro
Browse files

fix(lint fix):

parent 51756fc0
No related branches found
No related tags found
3 merge requests!233S26 updates,!230S26 Updates,!220Menu country improvement
import React, { Fragment } from 'react' import React, { Fragment } from 'react'
import styled from 'styled-components' import styled from 'styled-components'
import { th, override, validationColor } from '@pubsweet/ui-toolkit' import { th, override, validationColor } from '@pubsweet/ui-toolkit'
import { startsWith, toLower, get, head } from 'lodash' import { startsWith, toLower, get } from 'lodash'
import { withCountries } from 'pubsweet-component-faraday-ui' import { withCountries } from 'pubsweet-component-faraday-ui'
import { compose, withState, withHandlers, withProps } from 'recompose' import { compose, withState, withHandlers, withProps } from 'recompose'
const filteredCountries = ({ countries, userInput }) => const filteredCountries = ({ countries, userInput }) =>
countries.filter(o => startsWith(toLower(o.label), toLower(userInput))) countries.filter(o => startsWith(toLower(o.label), toLower(userInput)))
const firstFilteredCountry = ({ countries, userInput }) =>
head(filteredCountries({ countries, userInput }))
const Menu = ({ const Menu = ({
open, open,
options, options,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment