How to use the octicons.globe function in octicons

To help you get started, we’ve selected a few octicons 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 FredrikNoren / ungit / components / graph / git-ref.js View on Github external
this.displayHtml = (largeCurrent) => {
      const size = (largeCurrent && this.current()) ? 26 : 18;
      let prefix = '';
      if (this.isRemote) {
        prefix = `<span>${octicons.globe.toSVG({ 'height': size })}</span> `;
      }
      if (this.isBranch) {
        prefix += `<span>${octicons['git-branch'].toSVG({ 'height': size })}</span> `;
      } else if (this.isTag) {
        prefix += `<span>${octicons.tag.toSVG({ 'height': size })}</span> `;
      }
      return prefix + this.localRefName;
    };
  }