Skip to content

Commit 10ad856

Browse files
committed
Revert the bodyStyle property:
Property 'styles' does not exist on type 'IntrinsicAttributes & CardProps & RefAttributes<HTMLDivElement>'. Did you mean 'style'? Signed-off-by: Artyom Vancyan <artyom.vancyan2000@gmail.com>
1 parent 1b2f044 commit 10ad856

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

examples/antd5.x/src/Demo.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,11 @@ const Demo = () => {
5959
<ConfigProvider
6060
theme={{algorithm: algorithm === "defaultAlgorithm" ? theme.defaultAlgorithm : theme.darkAlgorithm}}>
6161
<Card style={{height: "100%", borderRadius: 0, border: "none"}}
62-
styles={{
63-
body: {
64-
padding: 0,
65-
height: "100%",
66-
display: "flex",
67-
justifyContent: "center",
68-
}
62+
bodyStyle={{
63+
padding: 0,
64+
height: "100%",
65+
display: "flex",
66+
justifyContent: "center",
6967
}}>
7068
<div style={{
7169
minWidth: 415,

0 commit comments

Comments
 (0)