Refactor the frontend code

Open

Sun Dec 10 2023

The frontend code needs to be refactored to improve its readability and maintainability. The code should follow the best practices of React and TypeScript. The code should also have consistent formatting, naming, and commenting.