react-view-files
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -10,3 +10,2 @@ "use strict"; | ||
var _reactPdf = require("react-pdf"); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _DropdownMenuOptions = _interopRequireDefault(require("../DropdownMenuOptions")); | ||
@@ -419,3 +418,3 @@ var _Modal = require("../Modal"); | ||
var action = _ref4.action; | ||
if (action === "view") onClick === null || onClick === void 0 || onClick(selectedFile); | ||
if (action === "view") onClick === null || onClick === void 0 || onClick(selectedFile, fileExtension); | ||
if (action === "download") downloadFile(); | ||
@@ -591,10 +590,2 @@ if (action === "rename") setActiveRename(true); | ||
}); | ||
}; | ||
MediaPreview.propTypes = { | ||
file: _propTypes["default"].object.isRequired, | ||
onClick: _propTypes["default"].func, | ||
displayFooter: _propTypes["default"].bool, | ||
hideDropdown: _propTypes["default"].bool, | ||
style: _propTypes["default"].object, | ||
cover: _propTypes["default"].bool | ||
}; |
@@ -9,3 +9,2 @@ "use strict"; | ||
var _react = _interopRequireWildcard(require("react")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _ContentViewer = _interopRequireDefault(require("../ContentViewer")); | ||
@@ -108,5 +107,2 @@ var _MediaViewDocx = _interopRequireDefault(require("../MediaViewDocx")); | ||
}); | ||
}; | ||
MediaView.propTypes = { | ||
file: _propTypes["default"].object.isRequired | ||
}; |
{ | ||
"name": "react-view-files", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176514
40
1653