Skip to content

Commit

Permalink
Add tooltip for LeaderboardSubmissionButton
Browse files Browse the repository at this point in the history
  • Loading branch information
hunteraraujo committed Sep 26, 2023
1 parent efe1b3e commit 1b9ec31
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class LeaderboardSubmissionButton extends StatelessWidget {

@override
Widget build(BuildContext context) {
return SizedBox(
final button = SizedBox(
height: 50,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
Expand Down Expand Up @@ -44,5 +44,13 @@ class LeaderboardSubmissionButton extends StatelessWidget {
),
),
);

return isDisabled
? Tooltip(
message:
"You must complete a test suite before submitting to the leaderboard.",
child: button,
)
: button;
}
}

0 comments on commit 1b9ec31

Please sign in to comment.