1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +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

@@ -94,8 +94,9 @@ class Account extends Component {
renderMenu = () => {
let data;
const { isStaff, isOrgStaff, isInstAdmin } = this.state;
const { isAdminPanel = false } = this.props;
if (this.props.isAdminPanel) {
if (isAdminPanel) {
if (isStaff) {
data = {
url: siteRoot,
@@ -173,10 +174,6 @@ class Account extends Component {
}
}
Account.defaultProps = {
isAdminPanel: false
};
Account.propTypes = propTypes;
export default Account;