How to use the @blueprintjs/core.Intent.DANGER function in @blueprintjs/core

To help you get started, we’ve selected a few @blueprintjs/core 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 grigio / eosfilestore-web / src / containers / DownloadPage.tsx View on Github external
<div>
            <div>
              <h2>
                Type or paste below the first EOS transaction id containing the file
              </h2>
              <p>Hint: try 16d1fd7fc2d3ccc4a2141ba71ce32a96a30f848838bb6879ca2967905e97d7ca</p>
              
            </div>
          </div>
        

        <div>
          <div>
            {fileStore.isLoading ? (
              <div>
                <h2>
                  Fetching the file transactions
                </h2>
                {/* Maybe a component */}
                {fileStore.transactions.map((t: any) =&gt; (
                  <p>{t}</p>
                ))}</div></div></div>
github ia-toki / judgels / judgels-frontends / raphael / src / components / forms / meta.ts View on Github external
export function getIntent(meta: FormInputMeta) {
  return isValid(meta) ? undefined : Intent.DANGER;
}
github OriginProtocol / origin / infra / token-transfer-client / src / components / Login.js View on Github external
handleError = err => {
    const toaster = Toaster.create({
      intent: Intent.DANGER
    })
    toaster.show({ message: err })
  }
github compactd / compactd / client / src / features / settings / settings.tsx View on Github external
Socket.listen(error, (evt: any) => {
      dispatch({type: SET_SCANNING, scanning: false});
      Toaster.update(toast, {message: 'Scan failed, please check logs for more details', intent: Intent.DANGER});
    });
  }
github MacroConnections / DIVE-frontend / src / js / components / Base / ProjectSettingsModal.js View on Github external
value={ projectName }
                onChange={ this.enteredProjectNameInput }/&gt;
            
            <div>
              <div>Description</div>
              <textarea value="{" placeholder="{" type="textarea">            &lt;/div&gt;
        &lt;/div&gt;
        &lt;div className={ Classes.DIALOG_FOOTER }&gt;
            &lt;div className={ Classes.DIALOG_FOOTER_ACTIONS }&gt;
                &lt;Button intent={ Intent.DANGER } iconName="trash" onClick={ this.onClickDeleteProject }&gt;Delete&lt;/Button&gt;
                &lt;Button intent={ Intent.PRIMARY } onClick={ this.submit }&gt;Save Changes&lt;/Button&gt;
            &lt;/div&gt;
        &lt;/div&gt;
      &lt;/Dialog&gt;
    );
  }
}</textarea></div>
github alephdata / aleph / ui / src / screens / SettingsScreen / SettingsScreen.jsx View on Github external
renderPassword() {
    const { intl, metadata } = this.props;
    const { role } = this.state;

    if (!metadata.auth.password_login_uri) {
      return null;
    }
    const passwordIntent = this.validPassword() ? undefined : Intent.DANGER;
    const confirm = this.validPasswordConfirm();
    const confirmIntent = confirm ? undefined : Intent.DANGER;
    const confirmHelper = confirm ? undefined : intl.formatMessage(messages.password_mismatch);
    return (
      &lt;&gt;
        <h3>
          
        </h3>
github jauhararifin / ugrade / desktop / src / scenes / Dashboard / Announcements / CreateAnnouncementForm / CreateAnnouncementFormView.tsx View on Github external
handleChange,
  handleBlur,
  touched,
  isSubmitting,
  setFieldValue,
}) =&gt; (
  <form>
    
      <h3>Create Announcement</h3>
      <div>
        
          
        
        
          </div></form>
github palantir / blueprint / packages / docs-app / src / examples / core-examples / toastExample.tsx View on Github external
onClick: () =>
                    this.addToast({
                        icon: "ban-circle",
                        intent: Intent.DANGER,
                        message: "You cannot undo the past.",
                    }),
                text: "Undo",
github apache / druid / web-console / src / views / segments-view / segments-view.tsx View on Github external
const { terminateSegmentId, terminateDatasourceId } = this.state;
    if (!terminateDatasourceId || !terminateSegmentId) return;

    return (
       {
          const resp = await axios.delete(
            `/druid/coordinator/v1/datasources/${terminateDatasourceId}/segments/${terminateSegmentId}`,
            {},
          );
          return resp.data;
        }}
        confirmButtonText="Drop Segment"
        successText="Segment drop request acknowledged, next time the coordinator runs segment will be dropped"
        failText="Could not drop segment"
        intent={Intent.DANGER}
        onClose={() =&gt; {
          this.setState({ terminateSegmentId: undefined });
        }}
        onSuccess={() =&gt; {
          this.segmentsNoSqlQueryManager.rerunLastQuery();
          this.segmentsSqlQueryManager.rerunLastQuery();
        }}
      &gt;
        <p>{`Are you sure you want to drop segment '${terminateSegmentId}'?`}</p>
        <p>This action is not reversible.</p>
      
    );
  }
github source-academy / cadet-frontend / src / components / notification / NotificationBadge.tsx View on Github external
const NotificationBadge: React.SFC = props =&gt; {
  const notifications = props.notificationFilter
    ? props.notificationFilter(props.notifications)
    : props.notifications;

  if (!notifications.length) {
    return null;
  }

  const notificationIcon = (
    
      {notifications.length}
    
  );

  if (!props.disableHover) {
    const makeNotificationTag = (notification: Notification) =&gt; {
      const onRemove = () =&gt;
        props.handleAcknowledgeNotifications(filterNotificationsById(notification.id));

      return (