mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
1 parent
e460b3f532
commit
12c3422c28
2 files changed
+6
-6
No files matched your search
@@ -83,7 +83,7 @@ export class Extensions extends React.Component {
|
|||||||
this.requestInstall(
|
this.requestInstall(
|
||||||
filePaths.map(filePath => ({
|
filePaths.map(filePath => ({
|
||||||
fileName: path.basename(filePath),
|
fileName: path.basename(filePath),
|
||||||
filePath: filePath,
|
filePath,
|
||||||
}))
|
}))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -172,7 +172,7 @@ export class Extensions extends React.Component {
|
|||||||
const manifest = await this.validatePackage(tempFile);
|
const manifest = await this.validatePackage(tempFile);
|
||||||
validatedRequests.push({
|
validatedRequests.push({
|
||||||
...req,
|
...req,
|
||||||
manifest: manifest,
|
manifest,
|
||||||
tmpFile: tempFile,
|
tmpFile: tempFile,
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
@@ -61,10 +61,10 @@ export class DropFileInput<T extends HTMLElement = any> extends React.Component<
|
|||||||
className: cssNames("DropFileInput", className, {
|
className: cssNames("DropFileInput", className, {
|
||||||
droppable: this.dropAreaActive,
|
droppable: this.dropAreaActive,
|
||||||
}),
|
}),
|
||||||
onDragEnter: onDragEnter,
|
onDragEnter,
|
||||||
onDragLeave: onDragLeave,
|
onDragLeave,
|
||||||
onDragOver: onDragOver,
|
onDragOver,
|
||||||
onDrop: onDrop,
|
onDrop,
|
||||||
};
|
};
|
||||||
return React.cloneElement(contentElem, contentElemProps);
|
return React.cloneElement(contentElem, contentElemProps);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user