Skip to content

Commit 542a586

Browse files
author
Andrey Okonetchnikov
committed
fix: Use style prop instead of css prop on styled-components
For some reason it doesn't work now
1 parent 6e9e6e8 commit 542a586

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Frame.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Frame({ nodeName, children }: INode) {
2525

2626
return (
2727
<NodeWrapper
28-
css={{
28+
style={{
2929
...size,
3030
background: `url(${image})`,
3131
backgroundSize: "cover"

src/Group.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Group({ nodeName, children }: INode) {
2020

2121
return (
2222
<NodeWrapper
23-
css={{
23+
style={{
2424
...size,
2525
top: position.y,
2626
left: position.x

src/Text.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function Text({ nodeName, children }:INode) {
4646
]}
4747
/>
4848
<NodeWrapper
49-
css={{
49+
style={{
5050
...style,
5151
...size,
5252
lineHeight: `${style.lineHeightPx}px`,

0 commit comments

Comments
 (0)