Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions frontend/src/components/puzzles/PuzzleSubmit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,9 @@ export function PuzzleSubmit({
return <p className="text-sm text-gray-500">Place your cells and press submit when ready.</p>;
};

const buttonClassName = isPuzzleCompleted
? "bg-gray-400 cursor-not-allowed text-white"
: "bg-linera-primary hover:bg-linera-primary-dark text-white";
const buttonClassName = "bg-linera-primary hover:bg-linera-primary-dark text-white";

const buttonText = isPuzzleCompleted ? "Already Completed" : "Submit Solution";
const buttonText = isPuzzleCompleted ? "Resubmit Solution" : "Submit Solution";

return (
<Card className="bg-white shadow-lg">
Expand All @@ -161,7 +159,6 @@ export function PuzzleSubmit({
<Button
onPress={onSubmit}
isLoading={isSubmitting}
isDisabled={isPuzzleCompleted}
className={`w-full font-medium ${buttonClassName}`}
size="lg"
>
Expand Down
Loading