forked from USStateDept/State-TalentMAP
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1431 from MetaPhase-Consulting/update/snd-cn-htf-…
…flags setup for cn/htf/snd flags
- Loading branch information
Showing
25 changed files
with
317 additions
and
35 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
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,19 @@ | ||
import PropTypes from 'prop-types'; | ||
import Ribbon from '../Ribbon'; | ||
|
||
const CriticalNeed = ({ shortName, ...props }) => { | ||
const text = shortName ? 'CN' : 'Critical need'; | ||
return ( | ||
<Ribbon icon="exclamation" text={text} type="cn" {...props} /> | ||
); | ||
}; | ||
|
||
CriticalNeed.propTypes = { | ||
shortName: PropTypes.bool, | ||
}; | ||
|
||
CriticalNeed.defaultProps = { | ||
shortName: false, | ||
}; | ||
|
||
export default CriticalNeed; |
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,10 @@ | ||
import { shallow } from 'enzyme'; | ||
import CriticalNeed from './CriticalNeed'; | ||
|
||
describe('CriticalNeedComponent', () => { | ||
it('is defined', () => { | ||
const wrapper = shallow(<CriticalNeed />); | ||
|
||
expect(wrapper).toBeDefined(); | ||
}); | ||
}); |
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 @@ | ||
export { default } from './CriticalNeed'; |
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,7 +1,19 @@ | ||
import PropTypes from 'prop-types'; | ||
import Ribbon from '../Ribbon'; | ||
|
||
const Handshake = ({ ...props }) => ( | ||
<Ribbon icon="handshake-o" text="Handshake" type="primary" {...props} /> | ||
); | ||
const Handshake = ({ shortName, ...props }) => { | ||
const text = shortName ? 'HS' : 'Handshake'; | ||
return ( | ||
<Ribbon icon="handshake-o" text={text} type="primary" {...props} /> | ||
); | ||
}; | ||
|
||
Handshake.propTypes = { | ||
shortName: PropTypes.bool, | ||
}; | ||
|
||
Handshake.defaultProps = { | ||
shortName: false, | ||
}; | ||
|
||
export default Handshake; |
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,19 @@ | ||
import PropTypes from 'prop-types'; | ||
import Ribbon from '../Ribbon'; | ||
|
||
const HardToFill = ({ shortName, ...props }) => { | ||
const text = shortName ? 'HTF' : 'Hard to fill'; | ||
return ( | ||
<Ribbon icon="bolt" text={text} type="htf" {...props} /> | ||
); | ||
}; | ||
|
||
HardToFill.propTypes = { | ||
shortName: PropTypes.bool, | ||
}; | ||
|
||
HardToFill.defaultProps = { | ||
shortName: false, | ||
}; | ||
|
||
export default HardToFill; |
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,10 @@ | ||
import { shallow } from 'enzyme'; | ||
import HardToFill from './HardToFill'; | ||
|
||
describe('HardToFillComponent', () => { | ||
it('is defined', () => { | ||
const wrapper = shallow(<HardToFill />); | ||
|
||
expect(wrapper).toBeDefined(); | ||
}); | ||
}); |
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 @@ | ||
export { default } from './HardToFill'; |
Oops, something went wrong.