Skip to content

Commit d06edb1

Browse files
committed
Add descriptive tooltip for submit
1 parent 25c65db commit d06edb1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/components/SubmitBar/index.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ export class SubmitBar extends React.Component<
186186
<span>COMMIT</span>
187187
</button>
188188
</Tooltip>
189-
<Tooltip title="Submit Code">
189+
<Tooltip
190+
title="Submit Code: This will submit your code as your current competitive AI. All your challenges with other
191+
players in the leaderboard will be played using this code.
192+
You have to submit your code before challenging an opponent."
193+
>
190194
<button
191195
className={classnames(styles.customBtn)}
192196
title="Submit Code"
@@ -325,7 +329,7 @@ export class SubmitBar extends React.Component<
325329
const { saveCode, lockCode } = this.props;
326330
await saveCode();
327331
await lockCode();
328-
}
332+
};
329333

330334
private startStoryModeMatch = async (mapId: number, aiId: number) => {
331335
const {

0 commit comments

Comments
 (0)