fix naming

This commit is contained in:
Sara Vieira committed 2022-08-21 12:04:43 +02:00
1 parent 560da01be0
commit 1ddaec0ee4
2 files changed
+4 -4

No files matched your search

@@ -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}
/>