Skip to content
Snippets Groups Projects
Commit efa33194 authored by chris's avatar chris
Browse files

cleanup props

parent 85c65553
No related branches found
No related tags found
No related merge requests found
Pipeline #61508 passed with stages
in 2 minutes and 52 seconds
...@@ -53,9 +53,9 @@ const Editoria = () => { ...@@ -53,9 +53,9 @@ const Editoria = () => {
value={demo} value={demo}
// readonly // readonly
layout={layout} layout={layout}
// onChange={debounce(source => { onChange={debounce(source => {
// console.log(JSON.stringify(source)); console.log(source);
// }, 200)} }, 200)}
user={user} user={user}
scrollMargin={200} scrollMargin={200}
scrollThreshold={200} scrollThreshold={200}
......
...@@ -36,23 +36,7 @@ const createConfigWithHash = config => { ...@@ -36,23 +36,7 @@ const createConfigWithHash = config => {
}; };
const Wax = forwardRef((props, innerViewRef) => { const Wax = forwardRef((props, innerViewRef) => {
const { const { config, layout, onChange, targetFormat } = props;
autoFocus,
browserSpellCheck,
className,
config,
customValues,
fileUpload,
layout,
placeholder,
readonly,
value,
user,
onChange,
targetFormat,
scrollMargin,
scrollThreshold,
} = props;
const [application, setApplication] = useState(); const [application, setApplication] = useState();
const [WaxLayout, setWaxLayout] = useState(null); const [WaxLayout, setWaxLayout] = useState(null);
...@@ -79,27 +63,15 @@ const Wax = forwardRef((props, innerViewRef) => { ...@@ -79,27 +63,15 @@ const Wax = forwardRef((props, innerViewRef) => {
<WaxProvider> <WaxProvider>
<PortalProvider> <PortalProvider>
<WaxLayout <WaxLayout
{...props}
app={application} app={application}
autoFocus={autoFocus}
browserSpellCheck={browserSpellCheck}
className={className}
customValues={customValues}
fileUpload={fileUpload}
innerViewRef={innerViewRef} innerViewRef={innerViewRef}
onChange={finalOnChange || (() => true)} onChange={finalOnChange || (() => true)}
placeholder={placeholder}
readonly={readonly}
scrollMargin={scrollMargin}
scrollThreshold={scrollThreshold}
serializer={serializer} serializer={serializer}
targetFormat={targetFormat}
TrackChange={ TrackChange={
application.config.get('config.EnableTrackChangeService') || application.config.get('config.EnableTrackChangeService') ||
undefined undefined
} }
user={user}
value={value}
{...props}
/> />
</PortalProvider> </PortalProvider>
</WaxProvider> </WaxProvider>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment