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

Commit

Permalink
fix(demos): show links
Browse files Browse the repository at this point in the history
WIP still missing UTM campaigns
  • Loading branch information
luisherranz committed Dec 19, 2018
1 parent aee7b03 commit 71c70b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
14 changes: 7 additions & 7 deletions admin/components/Header/Links.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import React from "react";
import { string, func } from "prop-types";
import { inject } from "mobx-react";
import styled from "styled-components";
import { Box, Button } from "grommet";

const Links = ({
Expand All @@ -25,7 +24,13 @@ const Links = ({
margin={{ right: "20px" }}
onClick={openDocumentation}
/>
<ViewDemoButton primary label={viewDemoText} focusIndicator={false} />
<Button
primary
label={viewDemoText}
focusIndicator={false}
href="https://frontity.com/demo"
target="_blank"
/>
</Box>
);

Expand All @@ -49,8 +54,3 @@ export default inject(({ stores: { languages } }) => ({
openDocumentation: () =>
window.open("https://support.frontity.com/", "_blank"),
}))(Links);

const ViewDemoButton = styled(Button)`
/* hidden until feature is available */
display: none;
`;
9 changes: 5 additions & 4 deletions admin/components/Home/WithoutSiteId.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ const WithoutSiteId = ({
</Box>
))}
</Box>
<ViewDemoButton label={descriptionButtonText} />
<ViewDemoButton
label={descriptionButtonText}
href="https://frontity.com/demo"
target="_blank"
/>
</InnerContainer>
</Container>
<Separator />
Expand Down Expand Up @@ -179,9 +183,6 @@ const InnerContainer = styled.div`
const ViewDemoButton = styled(Button)`
width: 140px;
align-self: flex-end;
/* hidden until autodemos is available */
display: none;
`;

const Footer = styled(Box)`
Expand Down

0 comments on commit 71c70b1

Please sign in to comment.