extracted string to constant

This commit is contained in:
Abhinav-grd 2021-03-09 13:33:18 +05:30
parent 325684c524
commit a433e30ec1
2 changed files with 4 additions and 5 deletions

View file

@ -342,11 +342,8 @@ export default function Gallery(props) {
/>
{!isFirstLoad && data.length == 0 ? (
<Jumbotron>
<h1>Welcome to ente!</h1>
<p>
you don't seem to have any photo uploaded , click on
upload to start preserving your memories
</p>
<h1>{constants.WELCOME}</h1>
<p>{constants.UPLOAD_FIRST_PHOTO}</p>
<p>
<Button
variant="primary"

View file

@ -76,6 +76,8 @@ const englishConstants = {
NO_INTERNET_CONNECTION:
'please check your internet connection and try again',
TITLE: 'ente.io | encrypted photo storage',
WELCOME: 'welcome to ente!',
UPLOAD_FIRST_PHOTO: 'backup your first photo',
};
export default englishConstants;