From e0c628528142f26ce9a42ba4c3c5d2cb41114a56 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 10 May 2018 15:06:29 -0400 Subject: migrate styles --- frontend/components/ErrorMessage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/components/ErrorMessage.js') diff --git a/frontend/components/ErrorMessage.js b/frontend/components/ErrorMessage.js index 5da8d2a..d65f51d 100644 --- a/frontend/components/ErrorMessage.js +++ b/frontend/components/ErrorMessage.js @@ -3,7 +3,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -const StyledError = styled.div` +const ErrorStyles = styled.div` padding: 2rem; background: white; margin: 2rem 0; @@ -22,12 +22,12 @@ const DisplayError = ({ error, refetch }) => { if (!error || !error.message) return null; if (error.networkError && error.networkError.result && error.networkError.result.errors.length) { return error.networkError.result.errors.map((error, i) => ( - +

Shoot! {error.message.replace('GraphQL error: ', '')}

-
+ )); } return ( -- cgit v1.3