Skip to content

Commit eaf402c

Browse files
author
Andrews
committed
do not show subscribe button if not signed in
1 parent fbfb385 commit eaf402c

File tree

1 file changed

+1
-3
lines changed
  • dev-portal/src/components/ApiCatalog

1 file changed

+1
-3
lines changed

dev-portal/src/components/ApiCatalog/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ const SubscribedApiActionsDropdown = ({api}) => (
2525
</Dropdown.Menu>
2626
</Dropdown>)
2727

28-
const SubscribeButton = ({api}) => (
29-
isAuthenticated() ? <Button onClick={event => handleSubscribe(event, api)}>Subscribe</Button> : <a href='https://aws.amazon.com/marketplace/' target='_blank'><Button>Subscribe!</Button></a>
30-
)
28+
const SubscribeButton = ({api}) => isAuthenticated() ? <Button onClick={event => handleSubscribe(event, api)}>Subscribe</Button> : ''//<a href='https://aws.amazon.com/marketplace/' target='_blank'><Button>Subscribe!</Button></a>
3129
const ApiCard = api => (
3230
<Card key={api.apiId} style={{textAlign: 'center'}}>
3331
<Link to={`apis/${api.apiId}`} style={{background: 'rgba(0, 0, 0, 0.05)'}}><Image src={api.image} style={{margin: 'auto'}} /></Link>

0 commit comments

Comments
 (0)