diff --git a/app/packages/core/src/plugins/SchemaIO/components/TextView.tsx b/app/packages/core/src/plugins/SchemaIO/components/TextView.tsx index 478f665208..e3d39431bd 100644 --- a/app/packages/core/src/plugins/SchemaIO/components/TextView.tsx +++ b/app/packages/core/src/plugins/SchemaIO/components/TextView.tsx @@ -8,28 +8,28 @@ export default function TextView(props: ViewPropsType) { const { view = {} } = schema; const { color = "primary", - fontSize = "1rem", + font_size = "1rem", title = "", - textTransform = "none", + text_transform = "none", variant = "body1", bold = false, italic = false, align = "inherit", - noWrap = false, - textDecoration = "none", - letterSpacing = "normal", - lineHeight = "normal", - fontFamily = "default", + no_wrap = false, + text_decoration = "none", + letter_spacing = "normal", + line_height = "normal", + font_family = "default", width = "auto", - displayMode = "block", + display_mode = "block", padding = "1rem", } = view; const sx = { - fontFamily, + font_family, ...(bold ? { fontWeight: "bold" } : {}), ...(italic ? { fontStyle: "italic" } : {}), - ...(noWrap + ...(no_wrap ? { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" } : {}), }; @@ -38,17 +38,17 @@ export default function TextView(props: ViewPropsType) {