Fix: put label defs provider above moderation opts provider (#3806)

zio/stable
Paul Frazee 2024-05-01 15:59:19 -07:00 committed by GitHub
parent 5148b957b7
commit d3fafdc066
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 8 deletions

View File

@ -80,8 +80,9 @@ function InnerApp() {
<QueryProvider currentDid={currentAccount?.did}> <QueryProvider currentDid={currentAccount?.did}>
<PushNotificationsListener> <PushNotificationsListener>
<StatsigProvider> <StatsigProvider>
<ModerationOptsProvider> {/* LabelDefsProvider MUST come before ModerationOptsProvider */}
<LabelDefsProvider> <LabelDefsProvider>
<ModerationOptsProvider>
<LoggedOutViewProvider> <LoggedOutViewProvider>
<SelectedFeedProvider> <SelectedFeedProvider>
<UnreadNotifsProvider> <UnreadNotifsProvider>
@ -97,8 +98,8 @@ function InnerApp() {
</UnreadNotifsProvider> </UnreadNotifsProvider>
</SelectedFeedProvider> </SelectedFeedProvider>
</LoggedOutViewProvider> </LoggedOutViewProvider>
</LabelDefsProvider>
</ModerationOptsProvider> </ModerationOptsProvider>
</LabelDefsProvider>
</StatsigProvider> </StatsigProvider>
</PushNotificationsListener> </PushNotificationsListener>
</QueryProvider> </QueryProvider>

View File

@ -57,8 +57,9 @@ function InnerApp() {
key={currentAccount?.did}> key={currentAccount?.did}>
<QueryProvider currentDid={currentAccount?.did}> <QueryProvider currentDid={currentAccount?.did}>
<StatsigProvider> <StatsigProvider>
<ModerationOptsProvider> {/* LabelDefsProvider MUST come before ModerationOptsProvider */}
<LabelDefsProvider> <LabelDefsProvider>
<ModerationOptsProvider>
<LoggedOutViewProvider> <LoggedOutViewProvider>
<SelectedFeedProvider> <SelectedFeedProvider>
<UnreadNotifsProvider> <UnreadNotifsProvider>
@ -74,8 +75,8 @@ function InnerApp() {
</UnreadNotifsProvider> </UnreadNotifsProvider>
</SelectedFeedProvider> </SelectedFeedProvider>
</LoggedOutViewProvider> </LoggedOutViewProvider>
</LabelDefsProvider>
</ModerationOptsProvider> </ModerationOptsProvider>
</LabelDefsProvider>
</StatsigProvider> </StatsigProvider>
</QueryProvider> </QueryProvider>
</React.Fragment> </React.Fragment>