diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-10 15:06:29 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-10 15:06:29 -0400 |
| commit | e0c628528142f26ce9a42ba4c3c5d2cb41114a56 (patch) | |
| tree | 902a7c32978efc4d94d945c50f9378db36040aa5 /frontend/components/ErrorMessage.js | |
| parent | c832accab191190d93c470a622651b6ac6699ddd (diff) | |
migrate styles
Diffstat (limited to 'frontend/components/ErrorMessage.js')
| -rw-r--r-- | frontend/components/ErrorMessage.js | 6 |
1 files changed, 3 insertions, 3 deletions
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) => ( - <StyledError key={i}> + <ErrorStyles key={i}> <p data-test="graphql-error"> <strong>Shoot!</strong> {error.message.replace('GraphQL error: ', '')} </p> - </StyledError> + </ErrorStyles> )); } return ( |
