Refactor: Fixed renderStatsCard function docstring (#2946)
This commit is contained in:
1 parent
53d9bebee2
commit
2be4f86efd
1 file changed
+2
-2
@@ -77,11 +77,11 @@ const createTextNode = ({
|
|||||||
/**
|
/**
|
||||||
* Renders the stats card.
|
* Renders the stats card.
|
||||||
*
|
*
|
||||||
* @param {Partial<import('../fetchers/types').StatsData>} stats The stats data.
|
* @param {import('../fetchers/types').StatsData} stats The stats data.
|
||||||
* @param {Partial<import("./types").StatCardOptions>} options The card options.
|
* @param {Partial<import("./types").StatCardOptions>} options The card options.
|
||||||
* @returns {string} The stats card SVG object.
|
* @returns {string} The stats card SVG object.
|
||||||
*/
|
*/
|
||||||
const renderStatsCard = (stats = {}, options = {}) => {
|
const renderStatsCard = (stats, options = {}) => {
|
||||||
const {
|
const {
|
||||||
name,
|
name,
|
||||||
totalStars,
|
totalStars,
|
||||||
|
|||||||
Reference in new issue
Block a user