Skip to content

Commit

Permalink
[TS migration] Code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-rebelo committed Jan 8, 2024
1 parent d487449 commit 4ba8eb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/components/HTMLEngineProvider/BaseHTMLEngineProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ function BaseHTMLEngineProvider({textSelectable = false, children, enableExperim
}),
'mention-user': HTMLElementModel.fromCustomModel({tagName: 'mention-user', contentModel: HTMLContentModel.textual}),
'mention-here': HTMLElementModel.fromCustomModel({tagName: 'mention-here', contentModel: HTMLContentModel.textual}),
'next-steps': HTMLElementModel.fromCustomModel({
tagName: 'next-steps',
'next-step': HTMLElementModel.fromCustomModel({
tagName: 'next-step',
mixedUAStyles: {...styles.textLabelSupporting},
contentModel: HTMLContentModel.textual,
}),
'next-steps-email': HTMLElementModel.fromCustomModel({tagName: 'next-steps-email', contentModel: HTMLContentModel.textual}),
'next-step-email': HTMLElementModel.fromCustomModel({tagName: 'next-step-email', contentModel: HTMLContentModel.textual}),
video: HTMLElementModel.fromCustomModel({
tagName: 'video',
mixedUAStyles: {whiteSpace: 'pre'},
Expand Down
2 changes: 1 addition & 1 deletion src/components/HTMLEngineProvider/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import BaseHTMLEngineProvider from './BaseHTMLEngineProvider';
import {HTMLEngineProviderProps} from './types';

function HTMLEngineProvider({debug = false, children = null}: HTMLEngineProviderProps) {
function HTMLEngineProvider({debug = false, children}: HTMLEngineProviderProps) {
return (
<BaseHTMLEngineProvider
debug={debug}
Expand Down

0 comments on commit 4ba8eb2

Please sign in to comment.