Skip to content

Commit

Permalink
[NO-JIRA] Fix code errors
Browse files Browse the repository at this point in the history
  • Loading branch information
George Gillams committed Jan 30, 2020
1 parent 645b698 commit 6614f3c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Auth/LoadingCover.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const LoadingCover = props => {

LoadingCover.propTypes = {
loading: PropTypes.bool,
loadingSkeleton: PropTypes.class,
loadingSkeleton: PropTypes.elementType,
error: PropTypes.bool,
children: PropTypes.node.isRequired,
};
Expand Down
4 changes: 2 additions & 2 deletions src/Cards/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Card extends Component {
}

propogate = newValue => {
if (onHoverChanged) {
onHoverChanged(newValue);
if (this.props.onHoverChanged) {
this.props.onHoverChanged(newValue);
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/Typography/MarkdownRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ const elementForContent = (content, depth, light, elementClassName) => {
if (content.type === 'footnote2') {
return (
<p textStyle="xs">
<sup>{footnoteNumber}</sup> {childElement}
<sup>{content.footnoteNumber}</sup> {childElement}
</p>
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Typography/markdownLexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const lexRecursive = (content, depth, supportedFeatures) => {
const footnoteNumber = mdFootNote1.shift();
const postFootnoteText = mdFootNote1.join('');
return [
lexRecursive(preReferencesText, depth, supportedFeatures),
lexRecursive(preFootnoteText, depth, supportedFeatures),
{ type: 'mdFootNote1', number: footnoteNumber },
lexRecursive(postReferencesText, depth, supportedFeatures),
lexRecursive(postFootnoteText, depth, supportedFeatures),
];
}

Expand Down

0 comments on commit 6614f3c

Please sign in to comment.