Skip to content

Commit

Permalink
correcting the white belt
Browse files Browse the repository at this point in the history
  • Loading branch information
Afonso-santos committed Oct 11, 2023
1 parent ea19a3e commit 9985130
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/app/components/Belt/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ import { BELT_PT } from "~/lib/belt";
import styles from "./style.module.css";

export default function Belt({ belt }) {
const isWhite = belt === "white";

return (
<Tag className={!belt ? styles.nobelt : styles.capitalize} color={belt}>
<Tag
className={!belt ? styles.nobelt : styles.capitalize}
color={belt}
style={isWhite ? { border: "1px solid grey", color: "grey" } : {}}
>
{!belt ? BELT_PT[""] : BELT_PT[belt]}
</Tag>
);
Expand Down

0 comments on commit 9985130

Please sign in to comment.