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

Commit

Permalink
feat(features/common): remove unnssesary links from header. enable th…
Browse files Browse the repository at this point in the history
…eme switcher
  • Loading branch information
sergeysova committed Oct 27, 2018
1 parent 79a7147 commit a08b44c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/features/common/organisms/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react'
import styled from 'styled-components'
import { Link } from 'react-router-dom'

// import { ToggleThemeConsumer } from 'lib/theme-context'
import { ToggleThemeConsumer } from 'lib/theme-context'
import { Container } from 'ui/templates'
import { WithAccount } from './with-account'

Expand Down Expand Up @@ -86,11 +86,11 @@ export const Header = () => (
</SearchBox>
<WithAccount
renderExists={() => (
<NavLink to="/new">+ Create</NavLink>
<NavLink to="/new">+ New</NavLink>
)}
/>
<NavLink to="/feed">Feed</NavLink>
<NavItem href="https://github.com/howtocards/frontend" target="_blank">Contribute</NavItem>
{/* <NavLink to="/feed">Feed</NavLink> */}
{/* <NavItem href="https://github.com/howtocards/frontend" target="_blank">Contribute</NavItem> */}
<WithAccount
renderExists={({ account }) => (
<React.Fragment>
Expand All @@ -102,11 +102,11 @@ export const Header = () => (
<NavLink to="/join">Join</NavLink>
)}
/>
{/* <ToggleThemeConsumer>
<ToggleThemeConsumer>
{({ toggleDark, dark }) => (
<NavItem onClick={toggleDark}>{dark ? '🌔' : '☀️'}</NavItem>
)}
</ToggleThemeConsumer> */}
</ToggleThemeConsumer>
</Container>
</HeaderBox>
)

0 comments on commit a08b44c

Please sign in to comment.