Skip to content

Commit

Permalink
Revert "feature: MVP for #834 - help Victor`s email"
Browse files Browse the repository at this point in the history
This reverts commit 71c0148.
  • Loading branch information
plhnk authored Dec 14, 2020
1 parent dcc441d commit 5e62542
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 85 deletions.
1 change: 0 additions & 1 deletion src/components/atoms/Icon/icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

59 changes: 0 additions & 59 deletions src/components/atoms/PrivateComponent.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/atoms/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import Icon from './Icon'
import Image from './Image'
import Link from './Link'
import NiceLink from './NiceLink'
import PrivateComponent from './PrivateComponent'
import ScrollArrow from './ScrollArrow'
import ScrollProgress from './ScrollProgress'
import SiteName from './SiteName'
Expand All @@ -28,7 +27,6 @@ export {
Text,
Container,
ContainerMarkdown,
PrivateComponent,
ScrollArrow,
ScrollProgress,
SiteName,
Expand Down
30 changes: 10 additions & 20 deletions src/components/templates/Lexicon/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
/** @jsx jsx */

import { jsx, Grid } from 'theme-ui'
import {
ContainerMarkdown,
Flex,
Icon,
SiteName,
Text,
Link,
PrivateComponent,
} from 'components/atoms'
import { ContainerMarkdown, Flex, Icon, SiteName, Text, Link } from 'components/atoms'
import { MDXRenderer } from 'gatsby-plugin-mdx'
import { AuthContainer, GlobalMdx } from 'components/molecules'
import { Footer, PreviousNext, Sidebar } from 'components/organisms'
Expand Down Expand Up @@ -48,7 +40,7 @@ export default class Lexicon extends Component {
const seoDescription =
`${post.frontmatter.title}` + ' on Lexicon by Liferay.Design'
const seoImage = 'https://liferay.design/images/resources/lexicon-cover.png'
console.log(mdx.id, 'id')
console.log(mdx.id, 'id')
return (
<div className={`${lexicon.theme} ${documentation.theme}`}>
<Helmet>
Expand Down Expand Up @@ -84,6 +76,7 @@ export default class Lexicon extends Component {
</Helmet>
<MediaQuery maxWidth={767}>
{matches => {

return (
<Grid
sx={{ variant: 'grids.sideNav' }}
Expand Down Expand Up @@ -140,17 +133,14 @@ export default class Lexicon extends Component {
</Link>
) : null}


{mdx.frontmatter.docLink ? (
<PrivateComponent
<Link
className={lexicon.labelInfo}
to={mdx.frontmatter.docLink}
>
<Link
className={lexicon.labelInfo}
to={mdx.frontmatter.docLink}
>
Documentation
</Link>
</PrivateComponent>
Documentation
</Link>
) : null}

{mdx.frontmatter.productName ? (
Expand Down Expand Up @@ -184,12 +174,12 @@ export default class Lexicon extends Component {
className={documentation.mobileMenuBar}
justify="space-between"
>
<Icon name="lexicon" color="white" height="2em" />
<Icon name="lexicon" color='white' height='2em' />

{this.state.mobileSidebarVisible ? (
<Icon
name="close"
color="white"
color='white'
onClick={this.toggleMobileSidebarVisibility}
/>
) : (
Expand Down
3 changes: 0 additions & 3 deletions static/images/icons/lock.svg

This file was deleted.

0 comments on commit 5e62542

Please sign in to comment.