Skip to content

Commit

Permalink
fix(crash): Fix crash in PullDiff screen, SH is not stylable (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
machour authored Nov 5, 2017
1 parent 53089b6 commit ef2dd1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/code-line.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ const CodeLineNumber = styled.Text`
color: ${colors.grey};
`;

const SyntaxHighlighterStyled = CodeLineStyled.withComponent(SyntaxHighlighter);

export class CodeLine extends Component {
props: {
newChunk: boolean,
Expand Down Expand Up @@ -122,7 +120,7 @@ export class CodeLine extends Component {
)}

{this.isKnownType(language) && (
<SyntaxHighlighterStyled
<SyntaxHighlighter
language={language}
style={GithubStyle}
CodeTag={Text}
Expand All @@ -131,7 +129,7 @@ export class CodeLine extends Component {
fontSize={normalize(11)}
>
{change.content}
</SyntaxHighlighterStyled>
</SyntaxHighlighter>
)}
</CodeLineContainer>
</Wrapper>
Expand Down

0 comments on commit ef2dd1d

Please sign in to comment.