Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 98a1276

Browse files
refactor(c-img): remove unneeded props spread
1 parent fd5c0db commit 98a1276

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

packages/c-image/src/c-img.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,9 @@ export interface ImgProps extends HTMLChakraProps<"img">, NativeImageOptions {}
1717
export const CImg: ComponentWithProps<DeepPartial<CImageProps>> =
1818
defineComponent({
1919
name: "CImg",
20-
setup(props, { attrs }) {
20+
setup(_, { attrs }) {
2121
return () => {
22-
return (
23-
<chakra.img
24-
as={CNativeImage}
25-
class="chakra-image"
26-
{...props}
27-
{...attrs}
28-
/>
29-
)
22+
return <chakra.img as={CNativeImage} class="chakra-image" {...attrs} />
3023
}
3124
},
3225
})

0 commit comments

Comments
 (0)