How to use the n2o-framework/lib/actions/createActionHelper function in n2o-framework

To help you get started, we’ve selected a few n2o-framework 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 i-novus-llc / n2o-framework / frontend / n2o-notifications / src / actions.js View on Github external
export function clearAll() {
  return createActionHelper(CLEAR_ALL)();
}
github i-novus-llc / n2o-framework / frontend / n2o-notifications / src / actions.js View on Github external
export function destroy(id) {
  return createActionHelper(DESTROY)({
    id
  });
}
github i-novus-llc / n2o-framework / frontend / n2o-notifications / src / actions.js View on Github external
export function setCounter(counterId, value) {
  return createActionHelper(SET_COUNTER)({
    counterId,
    value
  });
}
github i-novus-llc / n2o-framework / frontend / n2o-notifications / src / actions.js View on Github external
export function add(
  id,
  { text, icon, image, title, date, close, delay }
) {
  return createActionHelper(ADD)({
    id,
    text,
    icon,
    image,
    title,
    date,
    close,
    delay
  });
}