mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-28 20:20:33 +00:00
Refactor: Top langs card: Fix returns tag in docstrings (#3036)
This commit is contained in:
committed by
GitHub
parent
e3e1495a53
commit
8e15656dc2
@@ -668,7 +668,7 @@ const renderDonutLayout = (langs, width, totalLanguageSize) => {
|
||||
* @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.
|
||||
* @returns {string} No languages data SVG node string.
|
||||
*/
|
||||
const noLanguagesDataNode = ({ color, text, layout }) => {
|
||||
return `
|
||||
@@ -684,7 +684,7 @@ const noLanguagesDataNode = ({ color, text, layout }) => {
|
||||
* @param {object} props Function properties.
|
||||
* @param {import("./types").TopLangOptions["layout"]=} props.layout Input layout string.
|
||||
* @param {boolean=} props.hide_progress Input hide_progress parameter value.
|
||||
* @return {number} Default languages count for input layout.
|
||||
* @returns {number} Default languages count for input layout.
|
||||
*/
|
||||
const getDefaultLanguagesCountByLayout = ({ layout, hide_progress }) => {
|
||||
if (layout === "compact" || hide_progress === true) {
|
||||
|
||||
Reference in New Issue
Block a user