Skip to content

Commit ef2dd1d

Browse files
authored
fix(crash): Fix crash in PullDiff screen, SH is not stylable (#618)
1 parent 53089b6 commit ef2dd1d

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/components/code-line.component.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ const CodeLineNumber = styled.Text`
7474
color: ${colors.grey};
7575
`;
7676

77-
const SyntaxHighlighterStyled = CodeLineStyled.withComponent(SyntaxHighlighter);
78-
7977
export class CodeLine extends Component {
8078
props: {
8179
newChunk: boolean,
@@ -122,7 +120,7 @@ export class CodeLine extends Component {
122120
)}
123121

124122
{this.isKnownType(language) && (
125-
<SyntaxHighlighterStyled
123+
<SyntaxHighlighter
126124
language={language}
127125
style={GithubStyle}
128126
CodeTag={Text}
@@ -131,7 +129,7 @@ export class CodeLine extends Component {
131129
fontSize={normalize(11)}
132130
>
133131
{change.content}
134-
</SyntaxHighlighterStyled>
132+
</SyntaxHighlighter>
135133
)}
136134
</CodeLineContainer>
137135
</Wrapper>

0 commit comments

Comments
 (0)