message: functionify badgeinfo class
diff: @@ -46,10 +46,7 @@ export function hasBadge(item?: DimItem | null): boolean {
  );
  }
  -export default class BadgeInfo extends React.Component<Props> {
  - render() {
  - const { item, isCapped, rating } = this.props;
  -
  +export default function BadgeInfo({ item, isCapped, rating }: Props) {
  const isBounty = Boolean(!item.primStat && item.objectives);
  const isStackable = Boolean(item.maxStackSize > 1);
  // treat D1 ghosts as generic items
  @@ -106,7 +103,6 @@ export default class BadgeInfo extends React.Component<Props> {
  </div>
  );
  }
  -}
  function ghostBadgeContent(item: DimItem) {
  const infos = getGhostInfos(item);
  