mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 05:17:19 +08:00
combine destructuring
This commit is contained in:
@@ -23,11 +23,7 @@ class LayoutContainer extends Component {
|
||||
passwordRequestSuccess
|
||||
} = this.props.auth;
|
||||
|
||||
const {
|
||||
TALK_RECAPTCHA_PUBLIC
|
||||
} = this.props;
|
||||
|
||||
const {handleLogout} = this.props;
|
||||
const {handleLogout, TALK_RECAPTCHA_PUBLIC} = this.props;
|
||||
if (loadingUser) { return <FullLoading />; }
|
||||
if (!isAdmin) {
|
||||
return <AdminLogin
|
||||
|
||||
Reference in New Issue
Block a user