Remove no apps message
This commit is contained in:
parent
a821a52a96
commit
72f9d435fb
|
|
@ -45,11 +45,7 @@ class Navigation extends Component<IProps & Styles, IState> {
|
||||||
const {classes, loggedIn} = this.props;
|
const {classes, loggedIn} = this.props;
|
||||||
const {apps} = this.state;
|
const {apps} = this.state;
|
||||||
|
|
||||||
const empty = (<ListItem disabled>
|
const userApps = apps.length === 0 ? null : apps.map((app) => {
|
||||||
<ListItemText primary="you have no applications :("/>
|
|
||||||
</ListItem>);
|
|
||||||
|
|
||||||
const userApps = apps.length === 0 ? empty : apps.map((app) => {
|
|
||||||
return (
|
return (
|
||||||
<Link className={classes.link} to={'/messages/' + app.id} key={app.id}>
|
<Link className={classes.link} to={'/messages/' + app.id} key={app.id}>
|
||||||
<ListItem button>
|
<ListItem button>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue