mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-14 10:58:34 +00:00
Refactor: Wakatime card: Add missing return statements for helper functions (#2998)
* Refactor: Wakatime card: Add missing return statements for helper functions * dev
This commit is contained in:
committed by
GitHub
parent
1ee613765e
commit
36eb17ffbb
@@ -43,6 +43,7 @@ const noCodingActivityNode = ({ color, text }) => {
|
||||
* @param {import("../fetchers/types").WakaTimeLang} args.lang The languages array.
|
||||
* @param {number} args.x The x position of the language node.
|
||||
* @param {number} args.y The y position of the language node.
|
||||
* @returns {string} The compact layout language SVG node.
|
||||
*/
|
||||
const createCompactLangNode = ({ lang, x, y }) => {
|
||||
const color = languageColors[lang.name] || "#858585";
|
||||
@@ -63,6 +64,7 @@ const createCompactLangNode = ({ lang, x, y }) => {
|
||||
* @param {Object} args The function arguments.
|
||||
* @param {import("../fetchers/types").WakaTimeLang[]} args.langs The language objects.
|
||||
* @param {number} args.y The y position of the language node.
|
||||
* @returns {string[]} The language text node items.
|
||||
*/
|
||||
const createLanguageTextNode = ({ langs, y }) => {
|
||||
return langs.map((lang, index) => {
|
||||
|
||||
Reference in New Issue
Block a user