mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
remove redundant char
This commit is contained in:
1 parent
417b717b63
commit
152e0a6680
1 file changed
-26
@@ -1,26 +0,0 @@
|
|||||||
import { renderCharacteristic } from "../hooks/useCharacteristicRenderer";
|
|
||||||
import type { CharacteristicOutput } from "../tankopedia/characteristics";
|
|
||||||
import type { CharacteristicRenderConfig } from "../tankopedia/characteristicsOrder";
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
characteristic: CharacteristicOutput;
|
|
||||||
others: CharacteristicOutput[];
|
|
||||||
config: CharacteristicRenderConfig;
|
|
||||||
}
|
|
||||||
|
|
||||||
export function TankopediaCharacteristic({
|
|
||||||
characteristic,
|
|
||||||
others,
|
|
||||||
config,
|
|
||||||
}: Props) {
|
|
||||||
if (characteristic === null) return null;
|
|
||||||
|
|
||||||
const rendered = renderCharacteristic(characteristic, config);
|
|
||||||
|
|
||||||
return (
|
|
||||||
<p>
|
|
||||||
{config.name}: {rendered} {config.units && `${config.units}`} (1 /{" "}
|
|
||||||
{others.length})
|
|
||||||
</p>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user