Revert changes

This commit is contained in:
Mark Greene committed 2025-12-30 15:48:44 +13:00
1 parent 488857b7d8
commit 0bd660f255
2 files changed
+11 -11

No files matched your search

@@ -1,12 +1,12 @@
import type { HTMLAttributes } from "react";
import type { HTMLAttributes } from 'react';
import {
TankComponentButton,
type TankComponentButtonProps,
} from "./TankComponentButton";
} from './TankComponentButton';
interface GenericTankComponentButtonProps extends TankComponentButtonProps {
icon: string;
iconStyles?: HTMLAttributes<HTMLImageElement>["style"];
iconStyles?: HTMLAttributes<HTMLImageElement>['style'];
}
export function GenericTankComponentButton({
@@ -21,7 +21,7 @@ export function GenericTankComponentButton({
style={{
width: 48,
height: 40,
position: "relative",
position: 'relative',
}}
>
<img
@@ -29,14 +29,14 @@ export function GenericTankComponentButton({
draggable={false}
src={icon}
style={{
objectFit: "contain",
objectFit: 'contain',
width: 32,
height: 32,
position: "absolute",
position: 'absolute',
opacity: props.disabled ? 0.5 : 1,
transform: "translate(-50%, -50%) scale(0.75)",
top: "50%",
left: "50%",
transform: 'translate(-50%, -50%) scale(1)',
top: '50%',
left: '50%',
...iconStyles,
}}
/>
@@ -44,4 +44,4 @@ export function GenericTankComponentButton({
{children}
</TankComponentButton>
);
}
}
@@ -394,7 +394,7 @@ export function Modules() {
</Button>
<Button
variant="ghost"
color="blue"
color="purple"
onClick={() => {
Duel.mutate((draft) => {
// Random turret