feat(V5): Update settings pages UI (#13396)
# Pull Request Template ## Description This PR updates settings page UI ## Type of change - [x] New feature (non-breaking change which adds functionality) ## Checklist: - [x] My code follows the style guidelines of this project - [x] I have performed a self-review of my code - [x] I have commented on my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [x] My changes generate no new warnings - [ ] I have added tests that prove my fix is effective or that my feature works - [x] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules
This commit is contained in:
@@ -36,17 +36,17 @@ const INBOX_ICON_MAP_FILL = {
|
||||
const DEFAULT_ICON_FILL = 'i-ri-chat-1-fill';
|
||||
|
||||
const INBOX_ICON_MAP_LINE = {
|
||||
[INBOX_TYPES.WEB]: 'i-ri-global-line',
|
||||
[INBOX_TYPES.FB]: 'i-ri-messenger-line',
|
||||
[INBOX_TYPES.TWITTER]: 'i-ri-twitter-x-line',
|
||||
[INBOX_TYPES.WHATSAPP]: 'i-ri-whatsapp-line',
|
||||
[INBOX_TYPES.API]: 'i-ri-cloudy-line',
|
||||
[INBOX_TYPES.EMAIL]: 'i-ri-mail-line',
|
||||
[INBOX_TYPES.TELEGRAM]: 'i-ri-telegram-line',
|
||||
[INBOX_TYPES.LINE]: 'i-ri-line-line',
|
||||
[INBOX_TYPES.INSTAGRAM]: 'i-ri-instagram-line',
|
||||
[INBOX_TYPES.TIKTOK]: 'i-ri-tiktok-line',
|
||||
[INBOX_TYPES.VOICE]: 'i-ri-phone-line',
|
||||
[INBOX_TYPES.WEB]: 'i-woot-website',
|
||||
[INBOX_TYPES.FB]: 'i-woot-messenger',
|
||||
[INBOX_TYPES.TWITTER]: 'i-woot-x',
|
||||
[INBOX_TYPES.WHATSAPP]: 'i-woot-whatsapp',
|
||||
[INBOX_TYPES.API]: 'i-woot-api',
|
||||
[INBOX_TYPES.EMAIL]: 'i-woot-mail',
|
||||
[INBOX_TYPES.TELEGRAM]: 'i-woot-telegram',
|
||||
[INBOX_TYPES.LINE]: 'i-woot-line',
|
||||
[INBOX_TYPES.INSTAGRAM]: 'i-woot-instagram',
|
||||
[INBOX_TYPES.VOICE]: 'i-woot-voice',
|
||||
[INBOX_TYPES.TIKTOK]: 'i-woot-tiktok',
|
||||
};
|
||||
|
||||
const DEFAULT_ICON_LINE = 'i-ri-chat-1-line';
|
||||
|
||||
@@ -99,19 +99,19 @@ describe('#Inbox Helpers', () => {
|
||||
describe('line variant', () => {
|
||||
it('returns correct line icon for web widget', () => {
|
||||
expect(getInboxIconByType(INBOX_TYPES.WEB, null, 'line')).toBe(
|
||||
'i-ri-global-line'
|
||||
'i-woot-website'
|
||||
);
|
||||
});
|
||||
|
||||
it('returns correct line icon for Facebook', () => {
|
||||
expect(getInboxIconByType(INBOX_TYPES.FB, null, 'line')).toBe(
|
||||
'i-ri-messenger-line'
|
||||
'i-woot-messenger'
|
||||
);
|
||||
});
|
||||
|
||||
it('returns correct line icon for TikTok', () => {
|
||||
expect(getInboxIconByType(INBOX_TYPES.TIKTOK, null, 'line')).toBe(
|
||||
'i-ri-tiktok-line'
|
||||
'i-woot-tiktok'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -147,7 +147,7 @@ describe('#Inbox Helpers', () => {
|
||||
it('returns WhatsApp line icon for Twilio WhatsApp number', () => {
|
||||
expect(
|
||||
getInboxIconByType(INBOX_TYPES.TWILIO, 'whatsapp', 'line')
|
||||
).toBe('i-ri-whatsapp-line');
|
||||
).toBe('i-woot-whatsapp');
|
||||
});
|
||||
|
||||
it('returns SMS line icon for regular Twilio number', () => {
|
||||
|
||||
Reference in New Issue
Block a user