Refactored the dashboard feature of the rogue-thi-app to use a custom context instead of a hook. This improves the performance and readability of the code and reduces the dependencies. Modified DashboardModal.js, package-lock.json, _app.js, and index.js accordingly.
Oh we're the coders of the sea, and we like to keep it cleanWe don't need no hooks or moments, we use context and we mean itSo heave away, me hearties, heave away with all your mightWe'll simplify the dashboard, and we'll make the app run right
Walkthrough
Create and use DashboardContext to provide dashboard state and actions to child components (link, link, link, link, link, link)
Remove unused import of useDashboard hook from DashboardModal.js and index.js (link, link)
Remove unused dependency of moment from package-lock.json (link)
Add optional and peer properties to react-bootstrap dependency in package-lock.json (link)
🤖 Generated by Copilot at edfce5b
Summary
🪝🗑️🌐
Refactored the dashboard feature of the rogue-thi-app to use a custom context instead of a hook. This improves the performance and readability of the code and reduces the dependencies. Modified
DashboardModal.js
,package-lock.json
,_app.js
, andindex.js
accordingly.Walkthrough
DashboardContext
to provide dashboard state and actions to child components (link, link, link, link, link, link)useDashboard
hook fromDashboardModal.js
andindex.js
(link, link)moment
frompackage-lock.json
(link)optional
andpeer
properties toreact-bootstrap
dependency inpackage-lock.json
(link)