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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user