Skip to content

Commit

Permalink
Merge pull request #36360 from Expensify/aldo_fix_defaultRendererProps
Browse files Browse the repository at this point in the history
Revert typescript migration change

(cherry picked from commit 59559c4)
  • Loading branch information
robertjchen authored and OSBotify committed Feb 12, 2024
1 parent ea817fb commit e5a3153
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from 'react';
import type {TextStyle} from 'react-native';
import {splitBoxModelStyle} from 'react-native-render-html';
import type {CustomRendererProps, TPhrasing, TText} from 'react-native-render-html';
import * as HTMLEngineUtils from '@components/HTMLEngineProvider/htmlEngineUtils';
Expand Down Expand Up @@ -41,7 +40,7 @@ function CodeRenderer({TDefaultRenderer, key, style, ...defaultRendererProps}: C

return (
<InlineCodeBlock
defaultRendererProps={{...defaultRendererProps, style: style as TextStyle}}
defaultRendererProps={{...defaultRendererProps, style: {}}}
TDefaultRenderer={TDefaultRenderer}
boxModelStyle={boxModelStyle}
textStyle={{...textStyle, ...textStyleOverride}}
Expand Down

0 comments on commit e5a3153

Please sign in to comment.