Skip to content

Commit

Permalink
Fix no languages data node function docstring (anuraghazra#2782)
Browse files Browse the repository at this point in the history
* Fix docstring for noLanguagesDataNode function

* dev
  • Loading branch information
qwerty541 authored Jun 7, 2023
1 parent dfe0766 commit 606775c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cards/top-languages-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,13 @@ const renderDonutLayout = (langs, width, totalLanguageSize) => {
};

/**
* Creates the no coding activity SVG node.
* Creates the no languages data SVG node.
*
* @param {{color: string, text: string, layout: import("./types").TopLangOptions["layout"]}} The function prop
* @param {object} props Object with function properties.
* @param {string} props.color No languages data text color.
* @param {string} props.text No languages data translated text.
* @param {import("./types").TopLangOptions["layout"] | undefined} props.layout Card layout.
* @return {string} No languages data SVG node string.
*/
const noLanguagesDataNode = ({ color, text, layout }) => {
return `
Expand Down

0 comments on commit 606775c

Please sign in to comment.