Skip to content

Commit 29edfa9

Browse files
feat: added restricted country functionality
1 parent adb12b4 commit 29edfa9

File tree

14 files changed

+3372
-7084
lines changed

14 files changed

+3372
-7084
lines changed

src/profile-v2/__snapshots__/ProfilePage.test.jsx.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ exports[`<ProfilePage /> Renders correctly in various states viewing other profi
4848
<div
4949
class="profile-avatar rounded-circle bg-light"
5050
>
51-
<div
51+
<iconmock
5252
aria-hidden="true"
5353
class="text-muted"
54-
data-testid="IconMock"
5554
focusable="false"
5655
role="img"
5756
viewbox="0 0 24 24"

src/profile/__mocks__/invalidUser.mockStore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = {
2929
drafts: {},
3030
isLoadingProfile: false,
3131
isAuthenticatedUserProfile: true,
32+
countriesCodesList: [],
3233
},
3334
router: {
3435
location: {

src/profile/__mocks__/savingEditedBio.mockStore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ module.exports = {
126126
],
127127
drafts: {},
128128
isLoadingProfile: false,
129-
disabledCountries: [],
129+
countriesCodesList: [],
130130
},
131131
router: {
132132
location: {

src/profile/__mocks__/viewOtherProfile.mockStore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ module.exports = {
8686
drafts: {},
8787
isLoadingProfile: false,
8888
learningGoal: 'advance_career',
89+
countriesCodesList: [],
8990
},
9091
router: {
9192
location: {

src/profile/__mocks__/viewOwnProfile.mockStore.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ module.exports = {
124124
createdDate: '2019-03-04T19:31:39.896806Z'
125125
}
126126
],
127+
countriesCodesList:[{code:"AX"},{code:"AL"}],
127128
drafts: {},
128129
isLoadingProfile: false
129130
},

0 commit comments

Comments
 (0)