Skip to content

Commit

Permalink
Merge pull request #120 from Psychedelic/fix/empty-apps-styling
Browse files Browse the repository at this point in the history
Fix/empty apps styling
  • Loading branch information
ChriLnth authored Jul 21, 2021
2 parents c54a918 + c77af96 commit deb87c8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion source/components/Apps/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ const Apps = () => {
return (
<div className={classes.emptyState}>
<img src={ThinkingEmoji} className={classes.image} />
<Typography variant="h4">{t('apps.emptyTitle')}</Typography>
<Typography className={classes.emptyTitle} variant="h4">{t('apps.emptyTitle')}</Typography>
<Typography className={classes.emptyText} variant="subtitle2">{t('apps.emptyText')}</Typography>
</div>
);
}
Expand Down
7 changes: 6 additions & 1 deletion source/components/Apps/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default makeStyles((theme) => ({
alignItems: 'center',
justifyContent: 'space-between',
padding: `${theme.spacing(1)}px ${theme.spacing(4)}px`,
height: 110,
textAlign: 'center',
whiteSpace: 'pre-line',
},
Expand All @@ -39,4 +38,10 @@ export default makeStyles((theme) => ({
opacity: 0.9,
},
},
emptyText: {
marginTop: 10,
},
emptyTitle: {
marginTop: 10,
},
}));
4 changes: 2 additions & 2 deletions source/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
"subtitle": "Main IC Wallet is connected to these sites.",
"disconnectTitle": "Disconnect from Site",
"disconnectText": "Are you sure you want to disconnect from",
"emptyTitle": "You aren’t connected to any apps yet.",
"emptyText": "Explore a list of all apps that use Plug and find your first in",
"emptyTitle": "You have no apps connected.",
"emptyText": "When you connect to an app they will be displayed here, with the ability to remove them.",
"emptyLink": "our docs.",
"comingSoonTitle": "Coming soon!",
"comingSoonSubtitle": "Plug will allow you to connect\nand log into IC Apps."
Expand Down

0 comments on commit deb87c8

Please sign in to comment.