Created a simple Practice Badge to showcase when an exercise is a practice exercise
This commit is contained in:
@@ -4,6 +4,7 @@ import clsx from "clsx";
|
||||
import { Fragment, useEffect, useState } from "react";
|
||||
import { CommonProps } from ".";
|
||||
import Button from "../Low/Button";
|
||||
import PracticeBadge from "../Low/PracticeBadge";
|
||||
|
||||
export default function TrueFalse({
|
||||
id,
|
||||
@@ -108,6 +109,7 @@ export default function TrueFalse({
|
||||
</div>
|
||||
</div>
|
||||
<span className="text-sm w-full leading-6">You can click a selected option again to deselect it.</span>
|
||||
{isPractice && <PracticeBadge className="w-fit self-end" />}
|
||||
<div className="bg-mti-gray-smoke rounded-xl px-5 py-6 flex flex-col gap-8">
|
||||
{questions.map((question, index) => {
|
||||
const id = question.id.toString();
|
||||
|
||||
Reference in New Issue
Block a user