Skip to content

Commit

Permalink
refactor: Convert Rank component to use TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jun 19, 2024
1 parent e2f1572 commit e459c53
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import React from "react";
import classNames from "classnames";

interface RankProps {
rank: {
class: string;
text: string;
};
}

// Rank shows a decorated representation of a rank
const Rank = ({ rank }) => {
const Rank = ({ rank }: RankProps) => {
return (
<div
className={classNames("aha__rank", rank.class, {
Expand Down

0 comments on commit e459c53

Please sign in to comment.