1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 13:50:07 +00:00

remove react old defaultProps (#7576)

This commit is contained in:
Michael An
2025-03-10 14:27:08 +08:00
committed by GitHub
parent 00707d1d05
commit 55719ccbdf
43 changed files with 214 additions and 438 deletions

View File

@@ -30,10 +30,6 @@ const propTypes = {
class FileUploader extends React.Component {
static defaultProps = {
isCustomPermission: false
};
constructor(props) {
super(props);
this.state = {
@@ -179,7 +175,7 @@ class FileUploader extends React.Component {
};
onFileAdded = (resumableFile, files) => {
const { isCustomPermission } = this.props;
const { isCustomPermission = false } = this.props;
let isFile = resumableFile.fileName === resumableFile.relativePath;
// uploading is file and only upload one file
if (isFile && files.length === 1) {