File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
client/apollo/react/src/Form/ItemFile Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
- import classNames from "classnames" ;
2
-
3
1
import type { ComponentType , ComponentProps } from "react" ;
4
2
5
3
import validationIcon from "@material-symbols/svg-400/outlined/check_circle-fill.svg" ;
6
4
import errorIcon from "@material-symbols/svg-400/outlined/error-fill.svg" ;
5
+ import { getComponentClassName } from "../../utilities/getComponentClassName" ;
7
6
import type { IconProps } from "../../Icon/IconCommon" ;
8
7
import { Spinner } from "../../Spinner/SpinnerCommon" ;
9
8
import { ItemFileState } from "./ItemFileCommon" ;
@@ -19,12 +18,15 @@ const ItemStateIcon = ({
19
18
ItemIconComponent,
20
19
ItemSpinnerComponent,
21
20
} : ItemStateIconProps ) => {
22
- const classname = classNames ( "af-icon" , `af-icon__${ state } ` ) ;
21
+ const componentClassName = getComponentClassName (
22
+ "af-icon" ,
23
+ `af-icon__${ state } ` ,
24
+ ) ;
23
25
return state === "loading" ? (
24
26
< ItemSpinnerComponent size = { 24 } className = "af-item-file__spinner" />
25
27
) : (
26
28
< ItemIconComponent
27
- className = { classname }
29
+ className = { componentClassName }
28
30
size = "S"
29
31
src = { state === "success" ? validationIcon : errorIcon }
30
32
/>
You can’t perform that action at this time.
0 commit comments