Skip to content

Commit

Permalink
correct the button variant, input is not changing
Browse files Browse the repository at this point in the history
  • Loading branch information
manish-singh-bisht committed Apr 21, 2024
1 parent 6f031f5 commit b4f49a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/level-form-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ export default function LevelsFormContainer({ levelsData }: { levelsData: TLevel

{showForm && <LevelsForm isForm={true} setShowForm={setShowForm} level={null} />}
<div>
<Button variant="secondary" onClick={toggleFormVisibility}>
{showForm ? "Cancel" : "Add Level"}
</Button>
<Button onClick={toggleFormVisibility}>{showForm ? "Cancel" : "Add Level"}</Button>
</div>
</div>
);
Expand Down

0 comments on commit b4f49a3

Please sign in to comment.