mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-09 14:03:33 +09:00
fix naming
This commit is contained in:
1 parent
560da01be0
commit
1ddaec0ee4
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -40,7 +40,7 @@ const truncatedText = {
|
||||
|
||||
type AssetInfoProps = Asset & {
|
||||
onClose: () => void;
|
||||
setIsDeleting: (isDeleting: boolean) => void;
|
||||
onDelete: () => void;
|
||||
};
|
||||
|
||||
export const AssetInfo = ({
|
||||
@@ -50,7 +50,7 @@ export const AssetInfo = ({
|
||||
id,
|
||||
name,
|
||||
onClose,
|
||||
setIsDeleting,
|
||||
onDelete,
|
||||
}: AssetInfoProps) => {
|
||||
const submit = useSubmit();
|
||||
const handleDeleteAsset = () => {
|
||||
@@ -58,7 +58,7 @@ export const AssetInfo = ({
|
||||
formData.append("assetId", id);
|
||||
formData.append("assetName", name);
|
||||
onClose();
|
||||
setIsDeleting(true);
|
||||
onDelete();
|
||||
submit(formData, { method: "delete" });
|
||||
};
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ export const AssetManagerThumbnail = (asset: Asset | UploadingAsset) => {
|
||||
css={{ width: 240, maxWidth: 240 }}
|
||||
content={
|
||||
<AssetInfo
|
||||
setIsDeleting={setIsDeleting}
|
||||
onDelete={() => setIsDeleting(true)}
|
||||
onClose={() => setTooltipOpen(false)}
|
||||
{...asset}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user