@@ -119,10 +119,10 @@ const Header: FC = () => {
119
119
( ) =>
120
120
activeChatsList
121
121
? activeChatsList . filter (
122
- ( c ) =>
123
- c . status === CHAT_STATUS . REDIRECTED &&
124
- c . customerSupportId === userInfo ?. idCode
125
- ) . length
122
+ ( c ) =>
123
+ c . status === CHAT_STATUS . REDIRECTED &&
124
+ c . customerSupportId === userInfo ?. idCode
125
+ ) . length
126
126
: 0 ,
127
127
[ activeChatsList ]
128
128
) ;
@@ -136,17 +136,17 @@ const Header: FC = () => {
136
136
// TODO send email notification
137
137
toast . open ( {
138
138
type : 'info' ,
139
- title : t ( 'settings.users.newUnansweredChat ' ) ,
140
- message : '' ,
139
+ title : t ( 'global.notification ' ) ,
140
+ message : t ( 'settings.users.newUnansweredChat' ) ,
141
141
} ) ;
142
142
}
143
143
subscription = interval ( 2 * 60 * 1000 ) . subscribe ( ( ) => {
144
144
if ( userProfileSettings . newChatSoundNotifications ) audio . play ( ) ;
145
145
if ( userProfileSettings . newChatPopupNotifications ) {
146
146
toast . open ( {
147
147
type : 'info' ,
148
- title : t ( 'settings.users.newUnansweredChat ' ) ,
149
- message : '' ,
148
+ title : t ( 'global.notification ' ) ,
149
+ message : t ( 'settings.users.newUnansweredChat' ) ,
150
150
} ) ;
151
151
}
152
152
} ) ;
@@ -166,17 +166,17 @@ const Header: FC = () => {
166
166
// TODO send email notification
167
167
toast . open ( {
168
168
type : 'info' ,
169
- title : t ( 'settings.users.newForwardedChat ' ) ,
170
- message : '' ,
169
+ title : t ( 'global.notification ' ) ,
170
+ message : t ( 'settings.users.newForwardedChat' ) ,
171
171
} ) ;
172
172
}
173
173
subscription = interval ( 2 * 60 * 1000 ) . subscribe ( ( ) => {
174
174
if ( userProfileSettings . forwardedChatSoundNotifications ) audio . play ( ) ;
175
175
if ( userProfileSettings . forwardedChatPopupNotifications ) {
176
176
toast . open ( {
177
177
type : 'info' ,
178
- title : t ( 'settings.users.newForwardedChat ' ) ,
179
- message : '' ,
178
+ title : t ( 'global.notification ' ) ,
179
+ message : t ( 'settings.users.newForwardedChat' ) ,
180
180
} ) ;
181
181
}
182
182
} ) ;
@@ -280,7 +280,7 @@ const Header: FC = () => {
280
280
customerSupportActive : csaActive ,
281
281
customerSupportId : customerSupportActivity . idCode ,
282
282
customerSupportStatus : 'online' ,
283
- } ) ;
283
+ } ) ;
284
284
} ;
285
285
286
286
const { getRemainingTime } = useIdleTimer ( {
@@ -464,109 +464,109 @@ const Header: FC = () => {
464
464
AUTHORITY . CUSTOMER_SUPPORT_AGENT ,
465
465
AUTHORITY . SERVICE_MANAGER ,
466
466
] . some ( ( auth ) => userInfo . authorities . includes ( auth ) ) && (
467
- < >
468
- < Section >
469
- < Track gap = { 8 } direction = "vertical" align = "left" >
470
- < p className = "h6" > { t ( 'settings.users.autoCorrector' ) } </ p >
471
- < SwitchBox
472
- name = "useAutocorrect"
473
- label = { t ( 'settings.users.useAutocorrect' ) }
474
- checked = { userProfileSettings . useAutocorrect }
475
- onCheckedChange = { ( checked ) =>
476
- handleUserProfileSettingsChange ( 'useAutocorrect' , checked )
477
- }
478
- />
479
- </ Track >
480
- </ Section >
481
- < Section >
482
- < Track gap = { 8 } direction = "vertical" align = "left" >
483
- < p className = "h6" > { t ( 'settings.users.emailNotifications' ) } </ p >
484
- < SwitchBox
485
- name = "forwardedChatEmailNotifications"
486
- label = { t ( 'settings.users.newForwardedChat' ) }
487
- checked = {
488
- userProfileSettings . forwardedChatEmailNotifications
489
- }
490
- onCheckedChange = { ( checked ) =>
491
- handleUserProfileSettingsChange (
492
- 'forwardedChatEmailNotifications' ,
493
- checked
494
- )
495
- }
496
- />
497
- < SwitchBox
498
- name = "newChatEmailNotifications"
499
- label = { t ( 'settings.users.newUnansweredChat' ) }
500
- checked = { userProfileSettings . newChatEmailNotifications }
501
- onCheckedChange = { ( checked ) =>
502
- handleUserProfileSettingsChange (
503
- 'newChatEmailNotifications' ,
504
- checked
505
- )
506
- }
507
- />
508
- </ Track >
509
- </ Section >
510
- < Section >
511
- < Track gap = { 8 } direction = "vertical" align = "left" >
512
- < p className = "h6" > { t ( 'settings.users.soundNotifications' ) } </ p >
513
- < SwitchBox
514
- name = "forwardedChatSoundNotifications"
515
- label = { t ( 'settings.users.newForwardedChat' ) }
516
- checked = {
517
- userProfileSettings . forwardedChatSoundNotifications
518
- }
519
- onCheckedChange = { ( checked ) =>
520
- handleUserProfileSettingsChange (
521
- 'forwardedChatSoundNotifications' ,
522
- checked
523
- )
524
- }
525
- />
526
- < SwitchBox
527
- name = "newChatSoundNotifications"
528
- label = { t ( 'settings.users.newUnansweredChat' ) }
529
- checked = { userProfileSettings . newChatSoundNotifications }
530
- onCheckedChange = { ( checked ) =>
531
- handleUserProfileSettingsChange (
532
- 'newChatSoundNotifications' ,
533
- checked
534
- )
535
- }
536
- />
537
- </ Track >
538
- </ Section >
539
- < Section >
540
- < Track gap = { 8 } direction = "vertical" align = "left" >
541
- < p className = "h6" > { t ( 'settings.users.popupNotifications' ) } </ p >
542
- < SwitchBox
543
- name = "forwardedChatPopupNotifications"
544
- label = { t ( 'settings.users.newForwardedChat' ) }
545
- checked = {
546
- userProfileSettings . forwardedChatPopupNotifications
547
- }
548
- onCheckedChange = { ( checked ) =>
549
- handleUserProfileSettingsChange (
550
- 'forwardedChatPopupNotifications' ,
551
- checked
552
- )
553
- }
554
- />
555
- < SwitchBox
556
- name = "newChatPopupNotifications"
557
- label = { t ( 'settings.users.newUnansweredChat' ) }
558
- checked = { userProfileSettings . newChatPopupNotifications }
559
- onCheckedChange = { ( checked ) =>
560
- handleUserProfileSettingsChange (
561
- 'newChatPopupNotifications' ,
562
- checked
563
- )
564
- }
565
- />
566
- </ Track >
567
- </ Section >
568
- </ >
569
- ) }
467
+ < >
468
+ < Section >
469
+ < Track gap = { 8 } direction = "vertical" align = "left" >
470
+ < p className = "h6" > { t ( 'settings.users.autoCorrector' ) } </ p >
471
+ < SwitchBox
472
+ name = "useAutocorrect"
473
+ label = { t ( 'settings.users.useAutocorrect' ) }
474
+ checked = { userProfileSettings . useAutocorrect }
475
+ onCheckedChange = { ( checked ) =>
476
+ handleUserProfileSettingsChange ( 'useAutocorrect' , checked )
477
+ }
478
+ />
479
+ </ Track >
480
+ </ Section >
481
+ < Section >
482
+ < Track gap = { 8 } direction = "vertical" align = "left" >
483
+ < p className = "h6" > { t ( 'settings.users.emailNotifications' ) } </ p >
484
+ < SwitchBox
485
+ name = "forwardedChatEmailNotifications"
486
+ label = { t ( 'settings.users.newForwardedChat' ) }
487
+ checked = {
488
+ userProfileSettings . forwardedChatEmailNotifications
489
+ }
490
+ onCheckedChange = { ( checked ) =>
491
+ handleUserProfileSettingsChange (
492
+ 'forwardedChatEmailNotifications' ,
493
+ checked
494
+ )
495
+ }
496
+ />
497
+ < SwitchBox
498
+ name = "newChatEmailNotifications"
499
+ label = { t ( 'settings.users.newUnansweredChat' ) }
500
+ checked = { userProfileSettings . newChatEmailNotifications }
501
+ onCheckedChange = { ( checked ) =>
502
+ handleUserProfileSettingsChange (
503
+ 'newChatEmailNotifications' ,
504
+ checked
505
+ )
506
+ }
507
+ />
508
+ </ Track >
509
+ </ Section >
510
+ < Section >
511
+ < Track gap = { 8 } direction = "vertical" align = "left" >
512
+ < p className = "h6" > { t ( 'settings.users.soundNotifications' ) } </ p >
513
+ < SwitchBox
514
+ name = "forwardedChatSoundNotifications"
515
+ label = { t ( 'settings.users.newForwardedChat' ) }
516
+ checked = {
517
+ userProfileSettings . forwardedChatSoundNotifications
518
+ }
519
+ onCheckedChange = { ( checked ) =>
520
+ handleUserProfileSettingsChange (
521
+ 'forwardedChatSoundNotifications' ,
522
+ checked
523
+ )
524
+ }
525
+ />
526
+ < SwitchBox
527
+ name = "newChatSoundNotifications"
528
+ label = { t ( 'settings.users.newUnansweredChat' ) }
529
+ checked = { userProfileSettings . newChatSoundNotifications }
530
+ onCheckedChange = { ( checked ) =>
531
+ handleUserProfileSettingsChange (
532
+ 'newChatSoundNotifications' ,
533
+ checked
534
+ )
535
+ }
536
+ />
537
+ </ Track >
538
+ </ Section >
539
+ < Section >
540
+ < Track gap = { 8 } direction = "vertical" align = "left" >
541
+ < p className = "h6" > { t ( 'settings.users.popupNotifications' ) } </ p >
542
+ < SwitchBox
543
+ name = "forwardedChatPopupNotifications"
544
+ label = { t ( 'settings.users.newForwardedChat' ) }
545
+ checked = {
546
+ userProfileSettings . forwardedChatPopupNotifications
547
+ }
548
+ onCheckedChange = { ( checked ) =>
549
+ handleUserProfileSettingsChange (
550
+ 'forwardedChatPopupNotifications' ,
551
+ checked
552
+ )
553
+ }
554
+ />
555
+ < SwitchBox
556
+ name = "newChatPopupNotifications"
557
+ label = { t ( 'settings.users.newUnansweredChat' ) }
558
+ checked = { userProfileSettings . newChatPopupNotifications }
559
+ onCheckedChange = { ( checked ) =>
560
+ handleUserProfileSettingsChange (
561
+ 'newChatPopupNotifications' ,
562
+ checked
563
+ )
564
+ }
565
+ />
566
+ </ Track >
567
+ </ Section >
568
+ </ >
569
+ ) }
570
570
</ Drawer >
571
571
) }
572
572
</ >
0 commit comments