From e7d41b5f353f3936c8900aaa0df6b9cf8d42fad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Fri, 15 Jun 2018 19:18:56 +0200 Subject: [PATCH] integrate new design for StickyBackToTop --- src/components/StickyBackToTop.js | 4 ++-- src/icons/AngleUp.js | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 src/icons/AngleUp.js diff --git a/src/components/StickyBackToTop.js b/src/components/StickyBackToTop.js index 5d7ce8d0..2fce4cf1 100644 --- a/src/components/StickyBackToTop.js +++ b/src/components/StickyBackToTop.js @@ -4,7 +4,7 @@ import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import styled from 'styled-components' import Box from 'components/base/Box' -import ArrowUp from 'icons/ArrowUp' +import AngleUp from 'icons/AngleUp' const Container = styled(Box)` position: fixed; @@ -85,7 +85,7 @@ class StickyBackToTop extends PureComponent { if (!el) return null return ReactDOM.createPortal( - + , el, ) diff --git a/src/icons/AngleUp.js b/src/icons/AngleUp.js new file mode 100644 index 00000000..01df6322 --- /dev/null +++ b/src/icons/AngleUp.js @@ -0,0 +1,16 @@ +// @flow + +import React from 'react' + +const path = ( + +) + +export default ({ size, ...p }: { size: number }) => ( + + {path} + +)