feat: use X icon for vehicle deletion
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
PlusCircleIcon,
|
PlusCircleIcon,
|
||||||
TractorIcon,
|
TractorIcon,
|
||||||
TruckIcon,
|
TruckIcon,
|
||||||
|
XIcon,
|
||||||
} from "@lucide/svelte";
|
} from "@lucide/svelte";
|
||||||
import Button, { buttonVariants } from "../ui/button/button.svelte";
|
import Button, { buttonVariants } from "../ui/button/button.svelte";
|
||||||
import {
|
import {
|
||||||
@ -74,7 +75,7 @@
|
|||||||
if(!confirm("Are you sure you want to delete this vehicle? This action cannot be undone.")) return;
|
if(!confirm("Are you sure you want to delete this vehicle? This action cannot be undone.")) return;
|
||||||
updateStore({ type: "vehicle", name: vehicle.name }, null);
|
updateStore({ type: "vehicle", name: vehicle.name }, null);
|
||||||
}}>
|
}}>
|
||||||
X
|
<XIcon />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user