mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2026-01-31 11:54:30 +01:00
Add tooltip for LeaderboardSubmissionButton
This commit is contained in:
@@ -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(
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user