This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from jspaine/reactify/mod_packing
packing list and volunteer components
- Loading branch information
Showing
26 changed files
with
1,215 additions
and
682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from 'react' | ||
|
||
const labelMap = { | ||
'Accepted': 'success', | ||
'Active': 'success', | ||
'Rejected': 'danger', | ||
'Pending': 'info', | ||
'Inactive': 'warning' | ||
} | ||
|
||
const ClientStatusLabel = ({client}) => | ||
<span | ||
className={`label label-${client.driver ? 'info' : labelMap[client.status]}`} | ||
> | ||
{client.driver ? 'Driver' : client.status} | ||
</span> | ||
|
||
export default ClientStatusLabel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react' | ||
import {connect} from 'react-redux' | ||
|
||
const mapStateToProps = state => ({ | ||
settings: state.settings.data, | ||
media: state.media.data | ||
}) | ||
|
||
const FoodbankLogo = ({settings, media}) => | ||
<img | ||
alt={settings && settings.organization} | ||
src={media && media.logoPath + media.logoFile} | ||
/> | ||
|
||
export default connect(mapStateToProps)(FoodbankLogo) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import React from 'react' | ||
import {connect} from 'react-redux' | ||
|
||
import FoodbankLogo from '../../media/components/foodbank-logo' | ||
import FoodbankLogo from '../../common/components/FoodbankLogo' | ||
|
||
const mapStateToProps = state => ({ | ||
settings: state.settings.data | ||
}); | ||
|
||
const CustomerCreateSuccess = ({settings}) => | ||
<section class="row text-center"> | ||
<section className="row text-center"> | ||
<FoodbankLogo /> | ||
<h3 class="col-md-12">Successfully submited. Thank you!</h3> | ||
<a href="/#!/" class="col-md-12">Go to {settings.organization}'s Homepage</a> | ||
<h3 className="col-md-12">Successfully submited. Thank you!</h3> | ||
<a href="/#!/" className="col-md-12">Go to {settings && settings.organization}'s Homepage</a> | ||
</section> | ||
|
||
export default connect(mapStateToProps)(CustomerCreateSuccess) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.