Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(advancded): Fix format due to syntax error #157

Merged
merged 1 commit into from
Oct 21, 2019

Conversation

dkozickis
Copy link
Contributor

This fixes slight formatting issues in "Approach: Generic Components" making it more reabable.

Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this. Since we format the markdown any formatting issue is an indicator for syntax errors. I'm pretty sure this is due the missing semicolons in the last 3 lines. Could you add semicolons to the last 3 <Link /> with the old format and see if yarn format formats the code properly?

ADVANCED.md Outdated
return <NavLink {...props as RouterLinkProps} />
} else {
return <a {...props as AnchorProps} />
}
}

<Link<RouterLinkProps> to="/">My link</Link> // ok
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these lines need a semicolon at the end. Otherwise this is invalid syntax

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You were correct, adding semicolons at the end and running yarn format helped.

@eps1lon eps1lon changed the title Fix slight formatting issues in "Approach: Generic Components" docs(advancded): Fix format due to syntax error Oct 21, 2019
@eps1lon eps1lon merged commit 47ebb39 into typescript-cheatsheets:master Oct 21, 2019
@eps1lon
Copy link
Member

eps1lon commented Oct 21, 2019

@dkozickis Much appreciated, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants