Skip to content

Commit

Permalink
fix props for inline code block
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Apr 23, 2021
1 parent 2118943 commit b94e2ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/InlineCodeBlock/WrappedText.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const propTypes = {
};

const defaultProps = {
textStyles: {},
wordStyles: {},
textStyles: [],
wordStyles: [],
};

const WrappedText = (props) => {
Expand Down
10 changes: 5 additions & 5 deletions src/components/InlineCodeBlock/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const InlineCodeBlock = ({
textStyle,
}) => (
<WrappedText
textStyle={textStyle}
wordStyle={{
...boxModelStyle,
...styles.codeWordStyle,
}}
textStyles={[textStyle]}
wordStyles={[
boxModelStyle,
styles.codeWordStyle,
]}
// eslint-disable-next-line react/jsx-props-no-spreading
{...defaultRendererProps}
>
Expand Down

0 comments on commit b94e2ba

Please sign in to comment.