Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Fix 'launch app' button style
Browse files Browse the repository at this point in the history
  • Loading branch information
MrXyfir committed Mar 21, 2019
1 parent e208456 commit 909b39d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web/components/info/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ interface InfoProps extends WithStyles<typeof styles> {
user?: Ptorx.User;
}

const CTAButton = ({ loggedIn }: { loggedIn: boolean }) =>
loggedIn ? (
<Link to="/app">
const CTAButton = ({ classes, user }: InfoProps) =>
user ? (
<Link to="/app" className={classes.a}>
<Button variant="contained" color="primary" size="large">
Launch App
</Button>
Expand Down Expand Up @@ -117,7 +117,7 @@ const _Info = ({ classes, user }: InfoProps) => (
through Ptorx.
</Typography>

<CTAButton loggedIn={!!user} />
<CTAButton classes={classes} user={user} />
</div>
</header>

Expand Down Expand Up @@ -199,7 +199,7 @@ const _Info = ({ classes, user }: InfoProps) => (
</section>

<section className={classes.section}>
<CTAButton loggedIn={!!user} />
<CTAButton classes={classes} user={user} />
</section>

<section className={classes.section}>
Expand Down

0 comments on commit 909b39d

Please sign in to comment.