cf_fx_points()

in src/content/components/BugList/columnTransforms.js [217:244]


  cf_fx_points(value) {
    const hasPoints = value && value !== "---";
    if (!hasPoints) {
      return "";
    }

    let tShirtSize;
    let points = parseInt(value, 10);
    if (points < 3) {
      tShirtSize = "SM";
    } else if (points < 8) {
      tShirtSize = "MD";
    } else if (points < 15) {
      tShirtSize = "LG";
    } else {
      tShirtSize = "XL";
    }

    return (
      <button
        className={priorityStyles[tShirtSize.toLowerCase()]}
        onClick={openPriorityGuide}
        tabIndex="-1"
        title={`${points} points`}>
        {tShirtSize}
      </button>
    );
  },