-
Notifications
You must be signed in to change notification settings - Fork 7
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 #94 from ISI-MIP/group3
Group3
- Loading branch information
Showing
49 changed files
with
4,087 additions
and
1,772 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
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
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,26 @@ | ||
import React, { Component} from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
const Mandatory = ({ mandatory }) => { | ||
if (mandatory === undefined) { | ||
return null | ||
} else if (mandatory) { | ||
return ( | ||
<span className="badge badge-info badge-mandatory" title="If your models uses input data of this kind, we require to use the specified dataset. Please see the note above."> | ||
mandatory | ||
</span> | ||
) | ||
} else { | ||
return ( | ||
<span className="badge badge-light badge-optional"> | ||
optional | ||
</span> | ||
) | ||
} | ||
} | ||
|
||
Mandatory.propTypes = { | ||
status: PropTypes.string | ||
} | ||
|
||
export default Mandatory |
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,14 @@ | ||
import React, { Component} from 'react' | ||
import PropTypes from 'prop-types' | ||
|
||
const SocForcing = ({ socForcings }) => { | ||
return socForcings.map(socForcing => { | ||
return <span className="badge badge-secondary badge-soc-forcing" key={socForcing}>{socForcing}</span> | ||
}) | ||
} | ||
|
||
SocForcing.propTypes = { | ||
socForcings: PropTypes.array | ||
} | ||
|
||
export default SocForcing |
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.