mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 02:52:12 +00:00
Add an image removal button in history stack
This commit is contained in:
1 parent
95894a87b9
commit
1847533e8a
1 file changed
+2
@@ -22,6 +22,7 @@ export interface ImageBundle {
|
||||
interface HistoryStackProps {
|
||||
onClear: () => void;
|
||||
onImageSelect?: (image: BaseSelectorImage) => void;
|
||||
onImageRemove?: (image: BaseSelectorImage) => void;
|
||||
imageBundles: ImageBundle[];
|
||||
onNewImageBundle?: (newBundle: ImageBundle) => void;
|
||||
pendingPlaceholders?: { id: string; count: number }[];
|
||||
@@ -179,6 +180,7 @@ export const HistoryStack = ({
|
||||
crossOrigin="anonymous"
|
||||
className="absolute inset-0 h-full w-full rounded-lg object-cover"
|
||||
/>
|
||||
<FontAwesomeIcon icon={faXmark} className="absolute top-0 right-0 h-4 w-4 text-lg text-danger" />
|
||||
</Button>
|
||||
))}
|
||||
{index < imageBundles.length - 1 && (
|
||||
|
||||
Reference in new issue
Block a user