fix: make it work with new vite
This commit is contained in:
@@ -10,11 +10,8 @@ export default function Counter(props: CounterProps) {
|
||||
props.count.value = Math.max(1, props.count.value);
|
||||
return (
|
||||
<div class="flex items-center px-1 py-2 rounded-xl">
|
||||
<Button
|
||||
class=""
|
||||
onClick={() => props.count.value -= 1}
|
||||
>
|
||||
<TbCircleMinus />
|
||||
<Button onClick={() => props.count.value -= 1}>
|
||||
<TbCircleMinus class="h-6 w-6" />
|
||||
</Button>
|
||||
<input
|
||||
class="text-3xl bg-transparent inline text-center -mx-4"
|
||||
@@ -27,7 +24,7 @@ export default function Counter(props: CounterProps) {
|
||||
}}
|
||||
/>
|
||||
<Button onClick={() => props.count.value += 1}>
|
||||
<TbCirclePlus />
|
||||
<TbCirclePlus class="h-6 w-6" />
|
||||
</Button>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user