Skip to content

Commit

Permalink
Remove DocsDrawer component
Browse files Browse the repository at this point in the history
  • Loading branch information
kpyszkowski committed Dec 10, 2024
1 parent 7e44808 commit 4a0325d
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 136 deletions.
21 changes: 8 additions & 13 deletions dapp/src/DApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import { QueryClientProvider } from "@tanstack/react-query"
import { ReactQueryDevtools } from "@tanstack/react-query-devtools"
import { AcreSdkProvider } from "./acre-react/contexts"
import GlobalStyles from "./components/GlobalStyles"
import {
DocsDrawerContextProvider,
WalletConnectionAlertContextProvider,
} from "./contexts"
import { WalletConnectionAlertContextProvider } from "./contexts"
import { useInitApp } from "./hooks"
import { router } from "./router"
import { store } from "./store"
Expand Down Expand Up @@ -65,15 +62,13 @@ function DAppProviders() {
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<AcreSdkProvider>
<DocsDrawerContextProvider>
<WalletConnectionAlertContextProvider>
<ReduxProvider store={store}>
<PostHogProvider>
<DApp />
</PostHogProvider>
</ReduxProvider>
</WalletConnectionAlertContextProvider>
</DocsDrawerContextProvider>
<WalletConnectionAlertContextProvider>
<ReduxProvider store={store}>
<PostHogProvider>
<DApp />
</PostHogProvider>
</ReduxProvider>
</WalletConnectionAlertContextProvider>
</AcreSdkProvider>
</QueryClientProvider>
</WagmiProvider>
Expand Down
25 changes: 0 additions & 25 deletions dapp/src/components/DocsDrawer.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions dapp/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Flex, VStack } from "@chakra-ui/react"
import { useIsEmbed, useMobileMode } from "#/hooks"
import { DappMode } from "#/types"
import { usePostHogPageViewCapture } from "#/hooks/posthog"
import DocsDrawer from "./DocsDrawer"
import Header from "./Header"
import ModalRoot from "./ModalRoot"
import MobileModeBanner from "./MobileModeBanner"
Expand Down Expand Up @@ -50,7 +49,6 @@ function Layout() {
>
<Outlet />

<DocsDrawer />
<ModalRoot />
</Flex>

Expand Down
44 changes: 0 additions & 44 deletions dapp/src/contexts/DocsDrawerContext.tsx

This file was deleted.

1 change: 0 additions & 1 deletion dapp/src/contexts/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./DocsDrawerContext"
export * from "./StakeFlowContext"
export * from "./PaginationContext"
export * from "./WalletConnectionAlertContext"
1 change: 0 additions & 1 deletion dapp/src/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export * from "./store"
export * from "./sdk"
export * from "./orangeKit"
export * from "./useDetectThemeMode"
export * from "./useDocsDrawer"
export * from "./useTransactionDetails"
export * from "./useStakeFlowContext"
export * from "./useInitApp"
Expand Down
14 changes: 0 additions & 14 deletions dapp/src/hooks/useDocsDrawer.ts

This file was deleted.

33 changes: 0 additions & 33 deletions dapp/src/theme/Drawer.ts

This file was deleted.

2 changes: 0 additions & 2 deletions dapp/src/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
styles,
zIndices,
} from "./utils"
import { drawerTheme } from "./Drawer"
import { modalTheme } from "./Modal"
import { cardTheme } from "./Card"
import { tooltipTheme } from "./Tooltip"
Expand Down Expand Up @@ -52,7 +51,6 @@ const defaultTheme = {
Card: cardTheme,
CloseButton: closeButtonTheme,
CurrencyBalance: currencyBalanceTheme,
Drawer: drawerTheme,
Form: formTheme,
FormLabel: formLabelTheme,
FormError: formErrorTheme,
Expand Down
1 change: 0 additions & 1 deletion dapp/src/theme/utils/zIndices.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const zIndices = {
drawer: 1470,
mobileBanner: 1500,
header: 1400,
footer: 1380,
Expand Down

0 comments on commit 4a0325d

Please sign in to comment.