Skip to content

Commit

Permalink
build: update home links
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jun 14, 2019
1 parent b9fa0ad commit 8b25238
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/patterns/DemoLinks/DemoLinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const DemoLinks = ({ children, chunkSize, onClick }) => (
{createElement(Logos[brand], {
key: index,
ratio: 0.6,
onClick: () => onClick(data)
onClick: () => onClick({ brand, data })
})}
</LogoWrap>
))}
Expand Down
9 changes: 5 additions & 4 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,7 @@ const SDK = ({ loading, editor, children, setDemoLink, siteUrl }) => (
<LiveDemo loading={loading} children={editor} />
</Hide>

<ButtonSecondary
onClick={() => navigate('/docs/sdk/getting-started/overview')}
>
<ButtonSecondary onClick={() => navigate('/embed')}>
<Caps fontSize={0}>See More</Caps>
</ButtonSecondary>
</Flex>
Expand All @@ -233,7 +231,10 @@ const SDK = ({ loading, editor, children, setDemoLink, siteUrl }) => (
color='gray8'
children='Try another link →'
/>
<DemoLinks children={children} onClick={setDemoLink} />
<DemoLinks
children={children}
onClick={({ brand }) => navigate(`/embed/${brand.toLowerCase()}`)}
/>
</Flex>
</Container>
)
Expand Down

0 comments on commit 8b25238

Please sign in to comment.