How to use the evergreen-ui.toaster.warning function in evergreen-ui

To help you get started, we’ve selected a few evergreen-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 JaeYeopHan / octodirect / src / components / setting-view / GitHubSetting.tsx View on Github external
private handleSubmit() {
    const { onClickSubmit } = this.props
    const { name, token } = this.state

    if (name !== '' && token !== '') {
      onClickSubmit({ name, token })
      toaster.success('Complete to connect!', { duration: 1 })
    } else {
      toaster.warning('Invalid input!', { duration: 1 })
    }
  }
github owtf / owtf / owtf / webapp / src / containers / WorklistPage / index.js View on Github external
setTimeout(() => {
      if (this.props.changeError === false) {
        toaster.warning("All Works are successfully paused :)");
      } else {
        toaster.danger("Server replied: " + this.props.changeError);
      }
    }, 500);
  }
github rakibtg / docker-web-gui / client / src / store / actions / container.action.js View on Github external
.catch( ex => {
        dispatch(updateContainer({
          containerId: container.shortId,
          data: { stateToggling: false },
        }))
        toaster.warning(`There is problem ${status === 'start'? 'starting' : 'stopping'} container ${container.Name}`,{duration: 5})
      })
  }
github owtf / owtf / owtf / webapp / src / containers / Report / SideFilters.js View on Github external
handleAlertMsg(alertStyle, alertMsg) {
    if (alertStyle === "success") {
      toaster.success(alertMsg);
    }
    if (alertStyle === "warning") {
      toaster.warning(alertMsg);
    }
    if (alertStyle === "danger") {
      toaster.danger(alertMsg);
    }
  }
github owtf / owtf / owtf / webapp / src / containers / Dashboard / index.js View on Github external
toasterSuccess(error_id, action) {
    if (action === "deleteError") {
      toaster.warning("Issue " + error_id + " is successfully deleted :)");
    }
  }
github owtf / owtf / owtf / webapp / src / containers / WorklistPage / index.js View on Github external
setTimeout(() => {
      if (this.props.changeError === false) {
        toaster.warning("Work is successfully paused :)");
      } else {
        toaster.danger("Server replied: " + this.props.changeError);
      }
    }, 500);
  }