Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

Commit

Permalink
Hide "Join" promo when logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
ottah committed Mar 8, 2020
1 parent 765da48 commit 14bf2fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/ui/body.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ function banner(state) {

module.exports = function body(main) {
return function(state, emit) {
const promoBanner = !state.user.loggedIn ? banner(state, emit) : null;
const b = html`
<body
class="flex flex-col items-center font-sans md:h-screen md:bg-grey-10 dark:bg-black"
>
${banner(state, emit)} ${state.cache(Header, 'header').render()}
${promoBanner} ${state.cache(Header, 'header').render()}
${main(state, emit)} ${state.cache(Footer, 'footer').render()}
</body>
`;
Expand Down

2 comments on commit 14bf2fb

@g587
Copy link

@g587 g587 commented on 14bf2fb Apr 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@g587
Copy link

@g587 g587 commented on 14bf2fb Apr 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

animated_1586825947117_64536375156471

Please sign in to comment.