Skip to content

Instantly share code, notes, and snippets.

@ddelrio1986
Created August 16, 2018 16:57
Show Gist options
  • Save ddelrio1986/2410d95c856b8fdc46c8956549145b28 to your computer and use it in GitHub Desktop.
Save ddelrio1986/2410d95c856b8fdc46c8956549145b28 to your computer and use it in GitHub Desktop.
A simple general error component
import React from 'react'
import { Alert, Col, Grid, Row } from 'react-bootstrap'
const GeneralError = () => (
<Grid fluid>
<Row>
<Col xs={12}>
<Alert bsStyle="danger" style={{marginTop: '1em'}}>
<h4 style={{fontWeight: '600'}}>An error has occurred!</h4>
<p>Relaunch the content to ensure nothing is lost.</p>
</Alert>
</Col>
</Row>
</Grid>
)
export default GeneralError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment