-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2: Added success message instead of toasts for the child. Solves issue
#59.
- Loading branch information
1 parent
96dad44
commit 28be744
Showing
3 changed files
with
50 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const finishMessages = [ | ||
'That was great work, keep it up!', | ||
'You are on a roll, you should be proud!', | ||
'Wow! How did you do that so fast?', | ||
'Great job!', | ||
'Outstanding work!', | ||
'You are such a team player.', | ||
'Amazing!', | ||
'Thank you for your hard work!', | ||
'We knew you could do it. Awesome work!', | ||
'Well done. Thanks for helping out!', | ||
'You are the best!', | ||
'Keep it going!', | ||
]; | ||
const generateFinishMessage = () => { | ||
const randomNumber = Math.floor(Math.random() * finishMessages.length - 1); | ||
return finishMessages[randomNumber]; | ||
}; | ||
export default generateFinishMessage; |