How to use the react-alert.transitions.SCALE function in react-alert

To help you get started, we’ve selected a few react-alert 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 hackforla / jobs-for-hope / client / src / components / Alert.js View on Github external
{options.type === "error" && }
      <span style="{{">{message}</span>
      <button style="{buttonStyle}">
        
      </button>
    
  );
};

export const alertOptions = {
  // you can also just use 'bottom center'
  position: positions.BOTTOM_CENTER,
  timeout: 3000,
  offset: "50px",
  // you can also just use 'scale'
  transition: transitions.SCALE
};