Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dApp: DocsDrawer component removal #924

Merged
merged 3 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 0 additions & 2 deletions dapp/src/theme/utils/semanticTokens.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
export const semanticTokens = {
space: {
header_height: 28,
header_height_xl: 36,
modal_shift: "9.75rem", // 156px
dashboard_card_padding: 5,
},
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
Loading