Skip to content

Commit

Permalink
Merge pull request Expensify#20563 from getusha/fix-double-strikethro…
Browse files Browse the repository at this point in the history
…ugh-style

Fix double strikethrough on inline code block
  • Loading branch information
PauloGasparSv authored Jun 13, 2023
2 parents 4d0b05b + 220b548 commit 24945f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/InlineCodeBlock/index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import React from 'react';
import _ from 'lodash';
import inlineCodeBlockPropTypes from './inlineCodeBlockPropTypes';
import Text from '../Text';

const InlineCodeBlock = (props) => {
const TDefaultRenderer = props.TDefaultRenderer;
const textStyles = _.omit(props.textStyle, 'textDecorationLine');

return (
<TDefaultRenderer
// eslint-disable-next-line react/jsx-props-no-spreading
{...props.defaultRendererProps}
>
<Text style={{...props.boxModelStyle, ...props.textStyle}}>{props.defaultRendererProps.tnode.data}</Text>
<Text style={{...props.boxModelStyle, ...textStyles}}>{props.defaultRendererProps.tnode.data}</Text>
</TDefaultRenderer>
);
};
Expand Down

0 comments on commit 24945f2

Please sign in to comment.