-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: blocked message for temp barred user, green save button for ad d…
…etails (#78) * fix: blocked message for temp barred user, green save button for ad details * fix: avatar resize issue fixed * fix: font sizes difference issue fixed * fix: added localize * fix: removed assertion
- Loading branch information
1 parent
14e980f
commit 5b04099
Showing
16 changed files
with
153 additions
and
92 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,18 @@ const mockProps = { | |
}; | ||
|
||
jest.mock('@deriv-com/api-hooks', () => ({ | ||
...jest.requireActual('@deriv-com/api-hooks'), | ||
useGetSettings: jest.fn(() => ({ email: '[email protected]' })), | ||
})); | ||
|
||
jest.mock('@deriv-com/ui', () => ({ | ||
...jest.requireActual('@deriv-com/ui'), | ||
useDevice: jest.fn(() => ({ isMobile: false })), | ||
useDevice: jest.fn(() => ({ isMobile: true })), | ||
})); | ||
|
||
jest.mock('@/utils', () => ({ | ||
...jest.requireActual('@/utils'), | ||
getCurrentRoute: jest.fn(() => ''), | ||
})); | ||
|
||
describe('AdvertiserName', () => { | ||
|
32 changes: 1 addition & 31 deletions
32
src/components/Modals/BlockUnblockUserModal/BlockUnblockUserModal.scss
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,33 +1,3 @@ | ||
.block-unblock-user-modal { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
right: auto; | ||
bottom: auto; | ||
margin-right: -50%; | ||
transform: translate(-50%, -50%); | ||
width: 44rem; | ||
padding: 2.4rem; | ||
border-radius: 8px; | ||
background: #fff; | ||
box-shadow: 0px 32px 64px 0px rgba(14, 14, 14, 0.14); | ||
|
||
&__text { | ||
margin: 2.4rem 0; | ||
|
||
@include mobile { | ||
margin: 1.6rem 0; | ||
} | ||
} | ||
|
||
@include mobile { | ||
padding: 1.6rem; | ||
width: 32.8rem; | ||
} | ||
|
||
&__footer { | ||
display: flex; | ||
justify-content: flex-end; | ||
gap: 0.8rem; | ||
} | ||
@include default-modal; | ||
} |
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
Oops, something went wrong.