We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cdc46b commit f7c3ee2Copy full SHA for f7c3ee2
packages/tags/src/styled/StyledAvatar.ts
@@ -6,14 +6,15 @@
6
*/
7
8
import styled from 'styled-components';
9
-import React, { Children } from 'react';
10
-import { DEFAULT_THEME, retrieveComponentStyles } from '@zendeskgarden/react-theming';
+import {
+ DEFAULT_THEME,
11
+ StyledBaseIcon,
12
+ retrieveComponentStyles
13
+} from '@zendeskgarden/react-theming';
14
15
const COMPONENT_ID = 'tags.avatar';
16
-export const StyledAvatar = styled(({ children, ...props }) =>
- React.cloneElement(Children.only(children), props)
-).attrs({
17
+export const StyledAvatar = styled(StyledBaseIcon).attrs({
18
'data-garden-id': COMPONENT_ID,
19
'data-garden-version': PACKAGE_VERSION
20
})`
0 commit comments