@@ -69,7 +69,7 @@ export const CapabilitiesChangedNotificationBar = (props: CapabilitiesChangeNoti
6969 if ( ! message ) {
7070 return null ;
7171 }
72- const iconProps = getNotificationIconProps ( notification ) ;
72+ const iconProps = getCustomMessageBarIconProps ( notification ) ;
7373 return (
7474 < MessageBar
7575 key = { notification . capabilityName }
@@ -120,20 +120,27 @@ const getCapabilityChangedNotificationString = (
120120} ;
121121
122122/* @conditional -compile-remove(capabilities) */
123- const getNotificationIconProps = ( notification : CapabalityChangedNotification ) : IIconProps | undefined => {
123+ const getCustomMessageBarIconProps = ( notification : CapabalityChangedNotification ) : IIconProps | undefined => {
124+ let iconName : string | undefined = undefined ;
124125 switch ( notification . capabilityName ) {
125126 case 'turnVideoOn' :
126127 if ( notification . isPresent ) {
127- return { iconName : 'ControlButtonCameraOn' } ;
128+ iconName = 'ControlButtonCameraOn' ;
129+ } else {
130+ iconName = 'ControlButtonCameraProhibited' ;
128131 }
129- return { iconName : 'ControlButtonCameraProhibited' } ;
132+ break ;
130133 case 'unmuteMic' :
131134 if ( notification . isPresent ) {
132- return { iconName : 'ControlButtonMicOn' } ;
135+ iconName = 'ControlButtonMicOn' ;
136+ } else {
137+ iconName = 'ControlButtonMicProhibited' ;
133138 }
134- return { iconName : 'ControlButtonMicProhibited' } ;
139+ break ;
140+ default :
141+ return undefined ;
135142 }
136- return undefined ;
143+ return { iconName , styles : { root : { '> *' : { height : '1rem' , width : '1rem' } } } } ;
137144} ;
138145
139146/* @conditional -compile-remove(capabilities) */
0 commit comments