feat: start migration to proto for popular tanks

This commit is contained in:
TrèsAbhi committed 2026-02-11 15:13:23 -06:00
1 parent 001709c25c
commit ccb86ae824
8 files changed
+68 -66

No files matched your search

@@ -1,11 +1,10 @@
import type { PopularTank } from "../../protos/popular_tanks";
import { Text } from "../Text";
import styles from "./index.module.css";
interface TankCard {
tank: string;
}
export function TankCard({ id }: PopularTank) {
const tanks = useAwait(api.tanks, "tanks");
export function TankCard({ tank }: TankCard) {
return (
<div className={styles["tank-card"]}>
<div className={styles["icon-wrapper"]}>
@@ -19,12 +18,12 @@ export function TankCard({ tank }: TankCard) {
<div
className={styles.icon}
style={{
backgroundImage: "url(https://i.imgur.com/HrkTwHc.png)",
backgroundImage: `url(/api/tanks/${id}.webp)`,
}}
/>
</div>
<Text className={styles.name}>{tank}</Text>
<Text className={styles.name}>{id}</Text>
</div>
);
}