How to use the @blueprintjs/icons.IconNames.WARNING_SIGN 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 pioneers / PieCentral / dawn / renderer / components / Status.js View on Github external
render() {
    let address = 'team42.local';
    let status = 'Unknown', icon = IconNames.HELP, intent;
    switch (this.props.status) {
      case ConnectionStatus.HEALTHY:
        status = 'Healthy';
        icon = IconNames.TICK_CIRCLE;
        intent = Intent.SUCCESS;
        break;
      case ConnectionStatus.WARNING:
        status = 'Warning';
        icon = IconNames.WARNING_SIGN;
        intent = Intent.WARNING;
        break;
      // case ConnectionStatus.ERROR:
      //   status = 'Error';
      //   icon = IconNames.ERROR;
      //   intent = Intent.DANGER;
      //   break;
      case ConnectionStatus.DISCONNECTED:
        status = 'Disconnected';
        icon = IconNames.SIGNAL_SEARCH;
        break;
    }
    return (
      
        
          {status} {this.props.status !== ConnectionStatus.DISCONNECTED &amp;&amp; <span></span>
github dagster-io / dagster / js_modules / dagit / src / plan / ComputeLogContent.tsx View on Github external
renderContent(content: string, isSelected: boolean) {
    const isTruncated =
      Buffer.byteLength(content, "utf8") &gt;= this.props.maxBytes;

    if (isTruncated) {
      const nextLine = content.indexOf("\n") + 1;
      const truncated =
        nextLine &lt; content.length ? content.slice(nextLine) : content;
      content = TRUNCATE_PREFIX + truncated;
    }

    const warning = isTruncated ? (
      
        
        This log has exceeded the 5MB limit.{" "}
        <a download="" href="{this.getDownloadUrl()}">
          Download the full log file
        </a>
        .
      
    ) : null;

    return (
      
        {warning}
github apache / druid / web-console / src / components / header-bar / header-bar.tsx View on Github external
<p>The console is running in restricted mode.</p>
          {message}
          <p>
            For more info check out the{' '}
            
              console documentation
            
            .
          </p>
        
      }
      position={Position.BOTTOM_RIGHT}
    &gt;
      <button>
    
  );
});
</button>
github nowyasimi / no8am / no8am / static / js / search / CourseCard.tsx View on Github external
private createAbbreviation(abbreviation: string, selectedAbbreviations: string[]) {
        const selectedIcon = selectedAbbreviations.find((currentAbbreviation) =&gt;
            abbreviation === currentAbbreviation) !== undefined ?
             : null;

        const conflictIcon = this.abbreviationHasConflicts(abbreviation) ?
             : null;

        const numberOfSections = this.props.searchItem.sectionsMatchingCourse.filter(
            (section) =&gt; section.departmentAndCourse === abbreviation).length;

        const numberOfSectionsTag = (
            <span>
                
                     {numberOfSections} Sections 
                
                
                     {numberOfSections} 
                
            </span>
        );

        return (
github dagster-io / dagster / js_modules / dagit / src / execute / SolidSelector.tsx View on Github external
<div style="{{">
                {allSolidsSelected ? "All" : highlighted.length} solid
                {highlighted.length !== 1 || allSolidsSelected ? "s" : ""}{" "}
                selected
              </div>
              <button> this.setState({ open: false })}&gt;
                Cancel
              </button>
              <button>
                Apply
              </button>
            
          
        
        <button>
          {valid &amp;&amp; this.props.pipeline
            ? subsetDescription(this.props.value, this.props.pipeline)
            : "Invalid Solid Selection"}
        </button>
      
    );
  }
}
github RoboPhred / oni-duplicity / src / pages / SaveEditor / pages / Duplicants / pages / Jobs / pages / Aptitudes / component.tsx View on Github external
render() {
    const { className, duplicant } = this.props;

    const behavior = duplicant.getBehavior(MinionResumeBehavior);
    if (!behavior) {
      return (
        
          No resume behavior exists on this duplicant. Jobs may not have been
          initialized.
        
      );
    }

    const rows = APTITUDE_NAMES.filter(x =&gt; !SKIP_APTITUDES.has(x)).map(
      name =&gt; (
        
      )
    );
github dagster-io / dagster / js_modules / dagit / src / execute / ConfigEditorModePicker.tsx View on Github external
items={this.props.modes}
          itemPredicate={(query, mode) =&gt;
            query.length === 0 || mode.name.includes(query)
          }
          itemRenderer={(mode, props) =&gt; (
            
          )}
          onItemSelect={this.onItemSelect}
        &gt;
          <button disabled="{singleMode" mode="">
        
      
    );
  }
</button>
github nowyasimi / no8am / no8am / static / js / sections / SectionListGroup.tsx View on Github external
key={section.CRN}
                    section={section}
                    addMargin={!allHidden &amp;&amp; index === this.props.sectionsInGroup.length - 1}
                    isManaged={section.isManaged}
                    isSelected={section.isSelected}
                    isUnavailable={section.isUnavailable}
                    isVisible={section.isVisible}
                /&gt;));

            const conflictsElements = this.createConflictsElements();

            let calloutIcon: IconName;
            let intent: Intent;

            if (conflictsElements.length &gt; 0) {
                calloutIcon = IconNames.WARNING_SIGN;
                intent = Intent.DANGER;
            } else if (this.props.sectionsInGroup.find((section) =&gt; section.isSelected) !== undefined) {
                calloutIcon = IconNames.TICK_CIRCLE;
                intent = Intent.SUCCESS;
            } else {
                calloutIcon = IconNames.CIRCLE;
                intent = Intent.NONE;
            }

            return (