Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3409165
D8269.id27916.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D8269.id27916.diff
View Options
diff --git a/web/app.react.js b/web/app.react.js
--- a/web/app.react.js
+++ b/web/app.react.js
@@ -163,9 +163,21 @@
render() {
let content;
if (this.props.loggedIn) {
- content = this.renderMainContent();
+ content = (
+ <>
+ <WebEditUserAvatarProvider>
+ {this.renderMainContent()}
+ {this.props.modals}
+ </WebEditUserAvatarProvider>
+ </>
+ );
} else {
- content = <Splash />;
+ content = (
+ <>
+ <Splash />
+ {this.props.modals}
+ </>
+ );
}
return (
<DndProvider backend={HTML5Backend}>
@@ -181,7 +193,6 @@
<PushNotificationsHandler />
<InviteLinkHandler />
{content}
- {this.props.modals}
</WagmiENSCacheProvider>
</WagmiConfig>
</MenuProvider>
@@ -214,43 +225,41 @@
});
return (
- <WebEditUserAvatarProvider>
- <div className={css.layout}>
- <DisconnectedBarVisibilityHandler />
- <DisconnectedBar />
- <UpdateModalHandler />
- <header
- className={headerClasses}
- onDoubleClick={this.onHeaderDoubleClick}
- >
- <div className={css['main-header']}>
- <h1 className={wordmarkClasses}>
- <a
- title="Comm Home"
- aria-label="Go to Comm Home"
- onClick={this.onWordmarkClicked}
- onDoubleClick={this.stopDoubleClickPropagation}
- >
- Comm
- </a>
- </h1>
- {navigationArrows}
- <div className={css['upper-right']}>
- <LoadingIndicator
- status={this.props.entriesLoadingStatus}
- size="medium"
- loadingClassName={css['page-loading']}
- errorClassName={css['page-error']}
- />
- </div>
+ <div className={css.layout}>
+ <DisconnectedBarVisibilityHandler />
+ <DisconnectedBar />
+ <UpdateModalHandler />
+ <header
+ className={headerClasses}
+ onDoubleClick={this.onHeaderDoubleClick}
+ >
+ <div className={css['main-header']}>
+ <h1 className={wordmarkClasses}>
+ <a
+ title="Comm Home"
+ aria-label="Go to Comm Home"
+ onClick={this.onWordmarkClicked}
+ onDoubleClick={this.stopDoubleClickPropagation}
+ >
+ Comm
+ </a>
+ </h1>
+ {navigationArrows}
+ <div className={css['upper-right']}>
+ <LoadingIndicator
+ status={this.props.entriesLoadingStatus}
+ size="medium"
+ loadingClassName={css['page-loading']}
+ errorClassName={css['page-error']}
+ />
</div>
- </header>
- <InputStateContainer>{mainContent}</InputStateContainer>
- <div className={css.sidebar}>
- <CommunityPicker />
</div>
+ </header>
+ <InputStateContainer>{mainContent}</InputStateContainer>
+ <div className={css.sidebar}>
+ <CommunityPicker />
</div>
- </WebEditUserAvatarProvider>
+ </div>
);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 5, 3:09 PM (9 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2616286
Default Alt Text
D8269.id27916.diff (3 KB)
Attached To
Mode
D8269: [web] Wrap modals with `WebEditUserAvatarProvider`
Attached
Detach File
Event Timeline
Log In to Comment