-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add state wrapper container to UserAccount component.
- Loading branch information
Douglas Hall
committed
Feb 7, 2019
1 parent
abba97d
commit 7f04300
Showing
15 changed files
with
23,569 additions
and
58 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,7 @@ | ||
import COUNTRIES from 'i18n-iso-countries'; | ||
|
||
COUNTRIES.registerLocale(require('i18n-iso-countries/langs/en.json')); | ||
|
||
const ALL_COUNTRIES = COUNTRIES.getNames('en'); | ||
|
||
export { ALL_COUNTRIES, COUNTRIES }; |
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,13 @@ | ||
const EDUCATION = { | ||
p: 'Doctorate', | ||
m: "Master's or professional degree", | ||
b: "Bachelor's Degree", | ||
a: "Associate's degree", | ||
hs: 'Secondary/high school', | ||
jhs: 'Junior secondary/junior high/middle school', | ||
el: 'Elementary/primary school', | ||
none: 'No formal education', | ||
o: 'Other education', | ||
}; | ||
|
||
export default EDUCATION; |
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,34 @@ | ||
const SOCIAL = { | ||
linkedin: { | ||
title: 'Linked In', | ||
}, | ||
twitter: { | ||
title: 'Twitter', | ||
}, | ||
facebook: { | ||
title: 'Facebook', | ||
}, | ||
}; | ||
|
||
const getSocialLinks = (socialLinksState) => { | ||
const socialLinks = {}; | ||
if (socialLinksState) { | ||
socialLinksState.forEach((link) => { | ||
const socialLinkUrl = link.socialLink; | ||
if (socialLinkUrl) { | ||
socialLinks[link.platform] = { | ||
...SOCIAL[link.platform], | ||
url: link.socialLink, | ||
display: link.socialLink, | ||
}; | ||
} | ||
}); | ||
} | ||
|
||
return socialLinks; | ||
}; | ||
|
||
export { | ||
getSocialLinks, | ||
SOCIAL, | ||
}; |
Oops, something went wrong.