Skip to content

Commit

Permalink
refactor: add status icon component
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Jul 30, 2021
1 parent 34679f4 commit ade2549
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/components/admin/field-trip-status-icon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'

import Icon from '../narrative/icon'

const FieldTripStatusIcon = ({ status }) => {
return status
? <Icon className='text-success' type='check' />
: <Icon className='text-warning' type='exclamation-circle' />
}

export default FieldTripStatusIcon

0 comments on commit ade2549

Please sign in to comment.