Skip to content

Commit

Permalink
fixup! feat(voting): adjust voting UI
Browse files Browse the repository at this point in the history
  • Loading branch information
phonktown committed Aug 29, 2024
1 parent f675775 commit 9f64600
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
13 changes: 5 additions & 8 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { withCsp } from 'modules/shared/utils/csp'
import { CustomAppProps } from 'modules/shared/utils/utilTypes'
import { AppProviderWeb3 } from 'modules/web3Provider'
import { AppWagmiConfig } from 'modules/wagmiConfig'
import { VoteFormActionsProvider } from 'modules/votes/providers/VoteFormActions/VoteFormActionsContext'

// Visualize route changes
nprogress()
Expand Down Expand Up @@ -116,13 +115,11 @@ function App({ envConfig, ...appProps }: CustomAppProps) {
<ConfigProvider envConfig={envConfig}>
<AppWagmiConfig>
<AppProviderWeb3>
<VoteFormActionsProvider>
<VotePromptProvider>
<ModalProvider>
<AppRootMemo {...appProps} />
</ModalProvider>
</VotePromptProvider>
</VoteFormActionsProvider>
<VotePromptProvider>
<ModalProvider>
<AppRootMemo {...appProps} />
</ModalProvider>
</VotePromptProvider>
</AppProviderWeb3>
</AppWagmiConfig>
</ConfigProvider>
Expand Down
10 changes: 9 additions & 1 deletion pages/vote/[voteId].tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { useRouter } from 'next/dist/client/router'
import { VoteForm } from 'modules/votes/ui/VoteForm'
import { VoteFormActionsProvider } from 'modules/votes/providers/VoteFormActions/VoteFormActionsContext'
import { ModalProvider } from 'modules/modal/ModalProvider'

export default function VotePage() {
const router = useRouter()
Expand All @@ -8,7 +10,13 @@ export default function VotePage() {
router.replace('/')
return null
}
return <VoteForm voteId={voteId} />
return (
<VoteFormActionsProvider>
<ModalProvider>
<VoteForm voteId={voteId} />
</ModalProvider>
</VoteFormActionsProvider>
)
}

// #!if IPFS_MODE !== "true"
Expand Down

0 comments on commit 9f64600

Please sign in to comment.