Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(docs): display name for function components #1107

Merged
merged 3 commits into from
Mar 26, 2019

Conversation

kuzhelov
Copy link
Contributor

This fix is necessary to prevent crashes on rendering docs pages that contain code snippet with function components that have no display name. The crash is happening because of No Display Name used by react-element-to-jsx-string for function components in prod:

algolia/react-element-to-jsx-string#11

Fix is provided to the Layout guide page.

@codecov
Copy link

codecov bot commented Mar 26, 2019

Codecov Report

Merging #1107 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1107   +/-   ##
=======================================
  Coverage   82.11%   82.11%           
=======================================
  Files         716      716           
  Lines        8559     8559           
  Branches     1165     1165           
=======================================
  Hits         7028     7028           
  Misses       1515     1515           
  Partials       16       16

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 617d1e7...afc9575. Read the comment docs.

@DustyTheBot
Copy link
Collaborator

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS

@kuzhelov kuzhelov merged commit 5744fbb into master Mar 26, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix/display-name-for-layout-docs-component branch March 26, 2019 13:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants