-
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 #4 from CitizenLabDotCo/add-profiles
Add profiles
- Loading branch information
Showing
6 changed files
with
89 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
const PROFILES = [ | ||
{ | ||
id: 'john_doe', | ||
description: "John Doe (random email, has name, has custom fields)", | ||
first_name: "John", | ||
last_name: "Doe", | ||
has_email: true, | ||
verified_email: true, | ||
gender: "male", | ||
birthdate: "2000-01-01", | ||
}, | ||
{ | ||
id: 'jane_doe', | ||
description: "Jane Doe (no email, has name, has custom fields)", | ||
first_name: "Jane", | ||
last_name: "Doe", | ||
has_email: false, | ||
verified_email: false, | ||
gender: "female", | ||
birthdate: "2001-02-02", | ||
}, | ||
{ | ||
id: 'tracy_smith', | ||
description: "Tracy Smith (random unverified email, has name, has custom fields)", | ||
first_name: "Tracy", | ||
last_name: "Smith", | ||
has_email: true, | ||
verified_email: false, | ||
gender: "female", | ||
birthdate: "2002-03-03", | ||
} | ||
] | ||
|
||
const getProfiles = () => PROFILES; | ||
|
||
const getProfileById = (id) => { | ||
return PROFILES.find(p => p.id === id); | ||
} | ||
|
||
module.exports = { | ||
getProfiles, | ||
getProfileById, | ||
}; |
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