mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
1 parent
ff56f1441e
commit
76dc9f0742
4 files changed
+36
-9
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { useMemo } from "react";
|
||||
import { useMemo, type ReactNode } from "react";
|
||||
import type { CharacteristicOutput } from "../core/tankopedia/characteristics";
|
||||
import {
|
||||
characteristicsOrder,
|
||||
@@ -28,7 +28,7 @@ export function useCharacteristicRenderer() {
|
||||
function renderCharacteristic(
|
||||
characteristic: CharacteristicOutput,
|
||||
config: CharacteristicRenderConfig,
|
||||
): string | null {
|
||||
): ReactNode {
|
||||
if (characteristic === null) return null;
|
||||
|
||||
if (config.render)
|
||||
|
||||
Reference in new issue
Block a user