How to use the cozy-ui/transpiled/react/palette.pomegranate function in cozy-ui

To help you get started, we’ve selected a few cozy-ui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cozy / cozy.github.io / en / cozy-banks / src / ducks / transactions / actions / HealthExpenseStatusAction.jsx View on Github external
'%{nbReimbursements}',
        vendors.length
      )
    : t('Transactions.actions.healthExpenseProcessed.single')

  // Normally, pending color is not error/red, but for now we handle this state like this
  const type = pending ? 'error' : 'normal'
  const icon = pending ? 'hourglass' : 'file'
  const reimbursements =
    transaction.reimbursements && transaction.reimbursements.data

  if (pending) {
    if (isModalItem) {
      return (
        }
          style={transactionModalRowStyle}
        >
          {text}
        
      )
    }

    return (
      }
        compact={compact}
      />
    )
  }
github cozy / cozy.github.io / en / cozy-banks / src / ducks / health-expense / HealthExpenseStatus.jsx View on Github external
export const HealthExpenseStatusIcon = ({ className = '', pending }) => {
  const color = pending ? palette.pomegranate : palette.dodgerBlue

  return (
    <span style="{healthExpenseStatusIconStyle}">
      
    </span>
  )
}
github cozy / cozy.github.io / en / cozy-banks / src / ducks / transactions / actions / HealthExpenseStatusAction.jsx View on Github external
return reimbursements
    ? reimbursements
        .map(
          reimbursement =>
            reimbursement && reimbursement.bill && reimbursement.bill.vendor
        )
        .filter(Boolean)
    : []
}

const isPending = transaction => {
  const vendors = getVendors(transaction)
  return vendors.length === 0
}

const transactionModalRowStyle = { color: palette.pomegranate }

const Component = ({
  transaction,
  compact,
  menuPosition,
  isModalItem,
  breakpoints: { isDesktop }
}) => {
  const { t } = useI18n()
  const pending = isPending(transaction)
  const vendors = getVendors(transaction)
  const text = pending
    ? t('Transactions.actions.healthExpensePending')
    : vendors.length > 1
    ? t('Transactions.actions.healthExpenseProcessed.plural').replace(
        '%{nbReimbursements}',
github cozy / cozy.github.io / en / cozy-banks / src / ducks / transactions / actions / HealthExpenseStatusAction.jsx View on Github external
getIcon: ({ transaction }) =&gt; {
    const color = isPending(transaction)
      ? palette.pomegranate
      : palette.dodgerBlue

    return 
  },
  match: transaction =&gt; {