chore: update ramda

This commit is contained in:
Rafael Taranto 2025-05-22 10:10:18 +01:00
parent 82132e8eb8
commit ffb66814f6
45 changed files with 2741 additions and 1620 deletions

View file

@ -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

View file

@ -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

View file

@ -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)) {

View file

@ -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 = () => {