Skip to content

Fix navigation on signup/register, fix styling on dashboard and add hardhat-deploy

Description

The first two commits fixes issue #36 by redirecting the user to the dashboard automatically after successful registration on the Auth page. I used the useNavigate hook from react-router-dom to implement this feature. I also made some minor styling changes on the dashboard page as shown in the attached screenshots.

Before 1: agora-1

After 1: agora-2

Before 2: agora-3

After 2: agora-4

Further I have added the hardhat-deploy functionality to the server. With this update, contracts can now be deployed using a simple command: npx hardhat deploy --network localhost. This replaces the previous command: npx hardhat run --network localhost scripts/deploy.js. The deployment scripts are now maintained in a separate folder called deploy, making it easier to navigate. Additionally, the addresses of deployed contracts are automatically updated in the frontend folder with every new deployment. This eliminates the need for manual updates. (Issue #35)

Type of change

Please mark the options that are relevant.

  • Updated UI/UX
  • Improved the business logic of code
  • Added new feature
  • Other

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
Edited by Aditya Bhattad

Merge request reports