How to use the cozy-ui/react.translate 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 / balance / components / BalanceRow.jsx View on Github external
if (props.group === undefined && props.account === undefined) {
      return new Error('Missing value for account or group. Validation failed.')
    }
  }
}

const mapStateToProps = state => ({
  filteringDoc: getFilteringDoc(state)
})

const mapDispatchToProps = dispatch => ({
  filterByDoc: doc => dispatch(filterByDoc(doc))
})

export default compose(
  translate(),
  withRouter,
  withBreakpoints(),
  connect(
    mapStateToProps,
    mapDispatchToProps
  )
)(BalanceRow)
github cozy / cozy.github.io / en / cozy-banks / src / ducks / balance / components / BalanceGroups.jsx View on Github external
<p>
            <button> router.push('/settings/groups')}
              className={cx(btnStyles['btn--no-outline'], 'u-pv-1')}
              label={t('Groups.manage-groups')}
            /&gt;
          <p></p>
        )}
      
    )
  }
}

export default compose(
  withRouter,
  translate()
)(BalanceGroups)
</button></p>