Skip to content

Commit

Permalink
fix: 🐛 fix proposal submit issue (#11107)
Browse files Browse the repository at this point in the history
<!--
Before opening a pull request, please read the [contributing
guidelines](https://github.com/pancakeswap/pancake-frontend/blob/develop/CONTRIBUTING.md)
first
-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `CreateProposal` component in the
voting system by integrating `react-hook-form` for form management,
adding new translations, and improving the handling of proposal
submissions.

### Detailed summary
- Added `react-hook-form` for form management in `CreateProposal`.
- Introduced new translations in `translations.json`.
- Added `spaceAtom` for managing space data.
- Enhanced error handling for form submissions.
- Updated date and time handling for proposal start and end.
- Improved voting power display with tooltips.
- Wrapped `CreateProposal` in a suspense component for better loading
UX.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
  • Loading branch information
chef-ryan authored Jan 7, 2025
1 parent 8615f7e commit 59903f9
Show file tree
Hide file tree
Showing 5 changed files with 371 additions and 165 deletions.
3 changes: 2 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
"@orbs-network/twap-ui-pancake": "0.11.4",
"@pancakeswap/achievements": "workspace:*",
"@pancakeswap/blog": "workspace:*",
"@pancakeswap/chains": "workspace:*",
"@pancakeswap/canonical-bridge": "workspace:*",
"@pancakeswap/chains": "workspace:*",
"@pancakeswap/farms": "workspace:*",
"@pancakeswap/gauges": "workspace:*",
"@pancakeswap/hooks": "workspace:*",
Expand Down Expand Up @@ -130,6 +130,7 @@
"react-device-detect": "^2.1.2",
"react-dom": "^18.2.0",
"react-fast-marquee": "^1.6.0",
"react-hook-form": "^7.54.2",
"react-redux": "^8.0.5",
"react-transition-group": "^4.4.5",
"react-window": "^1.8.7",
Expand Down
Loading

0 comments on commit 59903f9

Please sign in to comment.