Skip to content

Commit 7c20b4d

Browse files
jyash97CompuIves
authored andcommitted
fix: show like button on showcase title when the user is logged in (#2961)
1 parent def3779 commit 7c20b4d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/app/src/app/pages/Profile/Showcase/SandboxInfo/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ import {
1313
PlayButtonContainer,
1414
} from './elements';
1515

16-
function SandboxInfo({ sandbox }) {
16+
function SandboxInfo({ sandbox, isLoggedIn }) {
1717
return (
1818
<Container>
1919
<Row alignItems="center">
2020
<Title>
21-
{getSandboxName(sandbox)} <Like sandbox={sandbox} />
21+
{getSandboxName(sandbox)}{' '}
22+
{isLoggedIn ? <Like sandbox={sandbox} /> : null}
2223
</Title>
2324
</Row>
2425
<Row alignItems="flex-start">

packages/app/src/app/pages/Profile/Showcase/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class Showcase extends React.Component {
6262
/>
6363
</div>
6464
<div style={{ flex: 1 }}>
65-
<SandboxInfo sandbox={sandbox} />
65+
<SandboxInfo sandbox={sandbox} isLoggedIn={store.isLoggedIn} />
6666
</div>
6767
</Column>
6868
</Margin>

0 commit comments

Comments
 (0)