mirror of
https://github.com/ShayManor/github-readme-stats.git
synced 2026-12-02 11:53:48 +05:30
chore(WorkshopScreen): update ICONS type from JSX.Element to ReactNode
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import { useState, useMemo } from 'react'
|
import { useState, useMemo, type ReactNode } from 'react'
|
||||||
import type { WidgetSettings, Achievement, PerWidgetSettings } from '../App'
|
import type { WidgetSettings, Achievement, PerWidgetSettings } from '../App'
|
||||||
import { renderAllWidgets, type WidgetData } from '../lib/renderWidgets'
|
import { renderAllWidgets, type WidgetData } from '../lib/renderWidgets'
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ const ALL_WIDGETS = [
|
|||||||
|
|
||||||
// Inline SVGs keep parity with the backend (generator/src/widgets/achievements.py)
|
// Inline SVGs keep parity with the backend (generator/src/widgets/achievements.py)
|
||||||
// and render deterministically across platforms where emoji coverage varies.
|
// and render deterministically across platforms where emoji coverage varies.
|
||||||
const ICONS: { id: string; svg: JSX.Element }[] = [
|
const ICONS: { id: string; svg: ReactNode }[] = [
|
||||||
{
|
{
|
||||||
id: 'trophy',
|
id: 'trophy',
|
||||||
svg: (
|
svg: (
|
||||||
|
|||||||
Reference in New Issue
Block a user