Skip to content

Commit

Permalink
Remove no longer needed SSRProvider
Browse files Browse the repository at this point in the history
  • Loading branch information
dogmar committed Nov 10, 2023
1 parent 21d54bc commit 5ced9d2
Showing 1 changed file with 13 additions and 16 deletions.
29 changes: 13 additions & 16 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import NextLink from 'next/link'
import { useRouter } from 'next/router'

import { MarkdocContextProvider } from '@pluralsh/design-system/dist/markdoc'
import { SSRProvider } from 'react-aria'
import { ThemeProvider as StyledThemeProvider } from 'styled-components'
import { SWRConfig } from 'swr'

Expand Down Expand Up @@ -103,21 +102,19 @@ function App({ Component, pageProps }: MyAppProps) {
)

return (
<SSRProvider>
<MarkdocContextProvider value={{ variant: 'docs' }}>
<NavigationContextProvider value={navContextVal}>
<SWRConfig value={gProps.swrConfig}>
<BreakpointProvider>
<ThemeProvider theme={honorableTheme}>
<StyledThemeProvider theme={styledTheme}>
<FillLevelProvider value={0}>{app}</FillLevelProvider>
</StyledThemeProvider>
</ThemeProvider>
</BreakpointProvider>
</SWRConfig>
</NavigationContextProvider>
</MarkdocContextProvider>
</SSRProvider>
<MarkdocContextProvider value={{ variant: 'docs' }}>
<NavigationContextProvider value={navContextVal}>
<SWRConfig value={gProps.swrConfig}>
<BreakpointProvider>
<ThemeProvider theme={honorableTheme}>
<StyledThemeProvider theme={styledTheme}>
<FillLevelProvider value={0}>{app}</FillLevelProvider>
</StyledThemeProvider>
</ThemeProvider>
</BreakpointProvider>
</SWRConfig>
</NavigationContextProvider>
</MarkdocContextProvider>
)
}

Expand Down

0 comments on commit 5ced9d2

Please sign in to comment.