mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
1 parent
bc0004574a
commit
2bae132d18
7 files changed
+61
-14
No files matched your search
@@ -23,7 +23,7 @@
|
||||
}
|
||||
|
||||
.icon {
|
||||
width: 11rem;
|
||||
width: var(--tank-card-width);
|
||||
height: 7rem;
|
||||
position: relative;
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { PopularTank } from "@protos/blitzkit/popular_tanks";
|
||||
import { api } from "../../core/api/dynamic";
|
||||
import { useAwait } from "../../hooks/useAwait";
|
||||
import { useGameStrings } from "../../hooks/useGameStrings";
|
||||
@@ -7,7 +6,12 @@ import { LinkI18n } from "../LinkI18n";
|
||||
import { Text } from "../Text";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
export function TankCard({ id }: PopularTank) {
|
||||
interface TankCardProps {
|
||||
id: string;
|
||||
subtitle?: string;
|
||||
}
|
||||
|
||||
export function TankCard({ id }: TankCardProps) {
|
||||
const tank = useAwait(() => api.tank(id), `tank-${id}`);
|
||||
const gameStrings = useGameStrings("TankEntity");
|
||||
const locale = useLocale();
|
||||
|
||||
Reference in new issue
Block a user