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 cd90895 commit dbc0c44Copy full SHA for dbc0c44
packages/core/src/schema/styles/createSpec.ts
@@ -62,15 +62,13 @@ export function createStyleSpec<T extends StyleConfig>(
62
};
63
64
if (styleConfig.propSchema === "boolean") {
65
- // @ts-ignore not sure why this is complaining
66
- renderResult = styleImplementation.render();
+ renderResult = styleImplementation.render(mark.attrs.stringValue);
67
} else if (styleConfig.propSchema === "string") {
68
renderResult = styleImplementation.render(mark.attrs.stringValue);
69
} else {
70
throw new UnreachableCaseError(styleConfig.propSchema);
71
}
72
73
- // const renderResult = styleImplementation.render();
74
return addStyleAttributes(
75
renderResult,
76
styleConfig.type,
0 commit comments