File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ export const useAvatarProps = ({
6363 crossOrigin,
6464 loading,
6565 } ) ;
66- let uiProps : AvatarUIProps = useMemo ( ( ) => ( { ...uiState } ) , [ uiState ] ) ;
66+ let uiProps : AvatarUIProps = uiState ;
67+
6768 const { componentProps } = getComponentProps ( componentMap , children , uiProps ) ;
6869
6970 const _icon : AvatarUIState [ "icon" ] =
@@ -129,13 +130,14 @@ export const useAvatarProps = ({
129130 ] ,
130131 ) ;
131132
133+ const finalStatusIndicators = withIconA11y ( uiProps . statusIndicators , uiProps ) ;
132134 const statusIndicatorProps : AvatarStatusIndicatorProps = useMemo (
133135 ( ) => ( {
134136 ...uiProps ,
135137 ...componentProps . statusIndicatorProps ,
136- children : withIconA11y ( uiProps . statusIndicators , uiProps ) ,
138+ children : finalStatusIndicators ,
137139 } ) ,
138- [ componentProps . statusIndicatorProps , uiProps ] ,
140+ [ componentProps . statusIndicatorProps , finalStatusIndicators , uiProps ] ,
139141 ) ;
140142
141143 return {
You can’t perform that action at this time.
0 commit comments