Skip to content

Commit 9699868

Browse files
authored
Merge pull request #2674 from appirio-tech/dev
[PROD] Merging changes to handle undefined categoryName and country fields for basic_info trait
2 parents d202298 + bbc1898 commit 9699868

File tree

18 files changed

+476
-69
lines changed

18 files changed

+476
-69
lines changed

package-lock.json

Lines changed: 61 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/users.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,21 @@ export const updateMemberTraits = (handle, updatedTraits) => {
6161
.then(resp => _.get(resp.data, 'result.content', {}))
6262
}
6363

64+
/**
65+
* Create member traits
66+
*
67+
* @param {String} handle member handle
68+
* @param {Array} traits list of traits to create
69+
*
70+
* @returns {Promise<Array>} member traits
71+
*/
72+
export const createMemberTraits = (handle, traits) => {
73+
return axios.post(`${TC_API_URL}/v3/members/${handle}/traits`, {
74+
param: traits
75+
})
76+
.then(resp => _.get(resp.data, 'result.content', {}))
77+
}
78+
6479
/**
6580
* Update member photo
6681
*

src/components/Home/Home.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
}
9898

9999
h1 {
100-
@include tc-heading-extra-large;
100+
@include tc-heading-large;
101101
@include roboto-medium;
102102
color: $tc-black;
103103
letter-spacing: 0;

src/components/NoResults/NoResults.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
p {
1111
margin-bottom: 50px;
12-
@include tc-heading-large;
12+
@include tc-heading;
1313
font-weight: 300;
1414
}
1515

src/components/TopBar/ProjectToolBar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
overflow: hidden;
107107

108108
span {
109-
@include tc-heading;
109+
@include tc-heading-small;
110110
color: $tc-gray-10;
111111
display: block;
112112
text-overflow: ellipsis;

src/components/TopBar/ProjectsToolBar.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222

2323
.projects-title-mobile {
24-
@include tc-heading;
24+
@include tc-heading-small;
2525
color: $tc-gray-10;
2626
font-size: 15px;
2727
line-height: 50px;

src/components/User/UsernameAndDetails.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
max-width: 225px;
66

77
.username {
8-
@include tc-heading;
8+
@include tc-heading-small;
99
color: $tc-gray-80;
1010
text-overflow: ellipsis;
1111
overflow: hidden;

src/projects/create/components/ProductCard.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333

3434
h3 {
35-
@include tc-heading;
35+
@include tc-heading-small;
3636
@include roboto-bold;
3737
font-size: 15px;
3838
line-height: 20px;

src/projects/create/components/SelectProjectTemplate.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
+ h2 {
2626
font-size: 15px;
2727
line-height: 20px;
28-
@include tc-heading;
28+
@include tc-heading-small;
2929
@include roboto-bold;
3030
color: $tc-gray-80;
3131
margin-bottom: 13px;

src/projects/create/components/WizardHeader.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
min-width: 700px;
66
text-align: center;
77
h1 {
8-
@include tc-heading;
8+
@include tc-heading-small;
99
color: $tc-gray-50;
1010
margin-bottom: 20px;
1111
}

0 commit comments

Comments
 (0)