Extract share button text

This commit is contained in:
gbear605 2022-01-29 14:52:34 -05:00
parent 61d34186f1
commit d9419c410f
2 changed files with 3 additions and 2 deletions

View file

@ -9,6 +9,7 @@ import {
STATISTICS_TITLE,
GUESS_DISTRIBUTION_TEXT,
NEW_WORD_TEXT,
SHARE_TEXT,
} from '../../constants/strings'
type Props = {
@ -70,7 +71,7 @@ export const StatsModal = ({
handleShare()
}}
>
Share
{SHARE_TEXT}
</button>
</div>
)}

View file

@ -12,7 +12,7 @@ export const DELETE_TEXT = 'Delete'
export const STATISTICS_TITLE = 'Statistics'
export const GUESS_DISTRIBUTION_TEXT = 'Guess Distribution'
export const NEW_WORD_TEXT = 'New word in'
export const SHARE_TEXT = 'Share'
export const TOTAL_TRIES_TEXT = 'Total tries'
export const SUCCESS_RATE_TEXT = 'Success rate'
export const CURRENT_STREAK_TEXT = 'Current streak'