fix text bug

This commit is contained in:
Bowen Tan 2021-10-12 15:08:59 +08:00
parent 56bed840ae
commit d73f46269f

View File

@ -3,8 +3,8 @@ import { Type, Static } from '@sinclair/typebox';
import { ComponentImplementation } from '../../services/registry';
import _Text, { TextPropertySchema } from '../_internal/Text';
const Text: ComponentImplementation<Static<typeof PropsSchema>> = ({ value, style }) => {
return <_Text value={value} style={style} />;
const Text: ComponentImplementation<Static<typeof PropsSchema>> = ({ value }) => {
return <_Text value={value} />;
};
const StateSchema = Type.Object({
@ -25,8 +25,10 @@ export default {
isDraggable: true,
isResizable: false,
exampleProperties: {
raw: 'text',
format: 'plain',
value: {
raw: 'text',
format: 'plain',
},
},
exampleSize: [4, 1],
},