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 ? ( {!isFirstLoad && data.length == 0 ? (
<Jumbotron> <Jumbotron>
<h1>Welcome to ente!</h1> <h1>{constants.WELCOME}</h1>
<p> <p>{constants.UPLOAD_FIRST_PHOTO}</p>
you don't seem to have any photo uploaded , click on
upload to start preserving your memories
</p>
<p> <p>
<Button <Button
variant="primary" variant="primary"

View file

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