From 3c9f69d4950aeeefb72481359a4954be577447d5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 4 Sep 2017 12:14:18 -0700 Subject: [PATCH] Feather icons --- .../DocumentPreview/DocumentPreview.js | 15 ++++---- frontend/components/Layout/Layout.js | 37 +++++++++++-------- .../SidebarCollection/SidebarCollection.js | 4 +- .../SidebarCollectionList.js | 4 +- package.json | 1 + yarn.lock | 4 ++ 6 files changed, 37 insertions(+), 28 deletions(-) diff --git a/frontend/components/DocumentPreview/DocumentPreview.js b/frontend/components/DocumentPreview/DocumentPreview.js index 91d8bff18..ee33b6464 100644 --- a/frontend/components/DocumentPreview/DocumentPreview.js +++ b/frontend/components/DocumentPreview/DocumentPreview.js @@ -2,11 +2,11 @@ import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { Link } from 'react-router-dom'; +import { Star as StarIcon } from 'react-feather'; import Document from 'models/Document'; import styled from 'styled-components'; import { color } from 'styles/constants'; import PublishingInfo from './components/PublishingInfo'; -import StarIcon from 'components/Icon/StarIcon'; type Props = { document: Document, @@ -21,11 +21,6 @@ const StyledStar = styled(StarIcon)` margin-left: 4px; opacity: ${props => (props.solid ? '1 !important' : 0)}; transition: opacity 100ms ease-in-out; - - svg { - width: 1em; - height: 1em; - } `; const DocumentLink = styled(Link)` @@ -87,8 +82,12 @@ const DocumentLink = styled(Link)`

{document.title} {document.starred - ? - : } + ? + + + : + + }

- Home - Search - Starred + + Home + + + Search + + + Starred + {collections.active ? - + : - + } {collections.active ?