How to use the @blueprintjs/icons.IconNames.ERROR function in @blueprintjs/icons

To help you get started, we’ve selected a few @blueprintjs/icons 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 dagster-io / dagster / js_modules / dagit / src / Loading.tsx View on Github external
public render() {
    const { error, data } = this.props.queryResult;
    if (error) {
      console.error(error);
      return (
        
          
            
          
        
      );
    }
    if (!data || Object.keys(data).length === 0) {
      return (
        
          
            
          
        
      );
    }
    return this.props.children(data as TData);
github dagster-io / dagster / js_modules / dagit / src / PipelineExplorerRoot.tsx View on Github external
{({ pipelineOrError }) => {
        switch (pipelineOrError.__typename) {
          case "PipelineNotFoundError":
            return (
              
            );
          case "InvalidSubsetError":
          case "PythonError":
            return ;
          default:
            const pipeline = pipelineOrError;
            const displayedHandles = pipeline.solidHandles;
            const parentSolidHandle = pipelineOrError.solidHandle;
            return (
               h.solid.name === selectedName
                )}
                getInvocations={definitionName =>
                  displayedHandles
github apache / druid / web-console / src / console-application.tsx View on Github external
static shownNotifications() {
    AppToaster.show({
      icon: IconNames.ERROR,
      intent: Intent.DANGER,
      timeout: 120000,
      message: (
        <>
          It appears that the the service serving this console is not responding. The console will
          not function at the moment
        
      ),
    });
  }
github apache / druid / web-console / src / views / ingestion-view / ingestion-view.tsx View on Github external
{supervisorSpecDialogOpen && (
          
        )}
        {taskSpecDialogOpen && (
          
        )}
         this.setState({ alertErrorMsg: undefined })}
        >
          <p>{alertErrorMsg}</p>
        
        {supervisorTableActionDialogId &amp;&amp; (
           this.setState({ supervisorTableActionDialogId: undefined })}
          /&gt;
        )}
        {taskTableActionDialogId &amp;&amp; taskTableActionDialogStatus &amp;&amp; (
github dagster-io / dagster / js_modules / dagit / src / execute / PipelineExecutionRoot.tsx View on Github external
? pipelineOrError.message
              : "No data returned from GraphQL";

          return (
            
          );
        }

        if (pipelineOrError.__typename === "PythonError") {
          return (
            
          );
        }

        return (
          
        );
github dagster-io / dagster / js_modules / dagit / src / runs / RunsRoot.tsx View on Github external
{({ pipelineRunsOrError }) =&gt; {
            if (pipelineRunsOrError.__typename !== "PipelineRuns") {
              return (
                
              );
            }

            const runs = pipelineRunsOrError.results;
            const displayed = runs.slice(0, PAGE_SIZE);
            const hasPrevPage = !!cursor;
            const hasNextPage = runs.length === PAGE_SIZE + 1;
            return (
              &lt;&gt;
                
                <div style="{{">
                  </div>
github source-academy / cadet-frontend / src / components / assessment / index.tsx View on Github external
<span>this action is irreversible.</span>
        <p></p>
      
    ) : (
      &lt;&gt;
        <p>You are about to finalise your submission.</p>
        <p>
          Early submissions grant you additional XP, but{' '}
          <span>this action is irreversible.</span>
        </p>
      
    );
    const betchaDialog = (
      <dialog title="Betcha: Early Submission">
        <div>
          
        </div>
        <div>
          
            {controlButton('Cancel', null, this.setBetchaAssessmentNull, { minimal: false })}
            {controlButton('Finalise Submission', null, this.submitAssessment, {
              minimal: false,
              intent: Intent.DANGER
            })}
          
        </div></dialog>
github dagster-io / dagster / python_modules / dagit / dagit / webapp / src / execution / PipelineRunLogMessage.tsx View on Github external
);
    } else if (this.props.log.__typename === "PipelineSuccessEvent") {
      return (
        
          
            
          

          {this.props.log.message}
        
      );
    } else if (this.props.log.__typename === "PipelineFailureEvent") {
      return (
        
          
            
          
          {this.props.log.message}
        
      );
    } else {
      return {this.props.log.message};
    }
  }
}
github RoboPhred / oni-duplicity / src / pages / Error / component.tsx View on Github external
render() {
        let {
            loadError
        } = this.props;

        if (!loadError) {
            loadError = new Error("Well, this is weird... The Error page loaded, but there is no error.");
            loadError.stack = "I really don't know what to do about this..."
        }

        return (
            
                
                <div>
                    <code>{loadError.stack}</code>
                </div>
            
        );
    }
}
github apache / druid / web-console / src / dialogs / overlord-dynamic-config-dialog / overlord-dynamic-config-dialog.tsx View on Github external
private saveConfig = async (comment: string) => {
    const { onClose } = this.props;
    const newState: any = this.state.dynamicConfig;
    try {
      await axios.post('/druid/indexer/v1/worker', newState, {
        headers: {
          'X-Druid-Author': 'console',
          'X-Druid-Comment': comment,
        },
      });
    } catch (e) {
      AppToaster.show({
        icon: IconNames.ERROR,
        intent: Intent.DANGER,
        message: `Could not save overlord dynamic config: ${getDruidErrorMessage(e)}`,
      });
    }

    AppToaster.show({
      message: 'Saved overlord dynamic config',
      intent: Intent.SUCCESS,
    });
    onClose();
  };