chore: update ramda
This commit is contained in:
parent
82132e8eb8
commit
ffb66814f6
45 changed files with 2741 additions and 1620 deletions
|
|
@ -88,7 +88,7 @@ const NotificationCenter = ({
|
|||
const notificationsToShow =
|
||||
!showingUnread || !hasUnread
|
||||
? notifications
|
||||
: R.filter(R.propEq('read', false))(notifications)
|
||||
: R.filter(R.propEq(false, 'read'))(notifications)
|
||||
return notificationsToShow.map(n => {
|
||||
return (
|
||||
<NotificationRow
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ const ECol = ({ editing, focus, config, extraPaddingRight, extraPadding }) => {
|
|||
}
|
||||
|
||||
const groupStriped = elements => {
|
||||
const [toStripe, noStripe] = R.partition(R.propEq('stripe', true))(elements)
|
||||
const [toStripe, noStripe] = R.partition(R.propEq(true, 'stripe'))(elements)
|
||||
|
||||
if (!toStripe.length) {
|
||||
return elements
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ const ETable = ({
|
|||
setSaving(true)
|
||||
|
||||
const it = validationSchema.cast(value, { assert: 'ignore-optionality' })
|
||||
const index = R.findIndex(R.propEq('id', it.id))(data)
|
||||
const index = R.findIndex(R.propEq(it.id, 'id'))(data)
|
||||
const list = index !== -1 ? R.update(index, it, data) : R.prepend(it, data)
|
||||
|
||||
if (!R.equals(data[index], it)) {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const Autocomplete = ({
|
|||
autoFocus,
|
||||
...props
|
||||
}) => {
|
||||
const mapFromValue = options => it => R.find(R.propEq(valueProp, it))(options)
|
||||
const mapFromValue = options => it => R.find(R.propEq(it, valueProp))(options)
|
||||
const mapToValue = R.prop(valueProp)
|
||||
|
||||
const getValue = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue