-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/display farmers statistic #77
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really great addition to the code! The component works well and is clearly implemented. I think with some additional CSS styles that bring this closer to the mockup this will be fully completed and ready to go.
@@ -23,6 +28,29 @@ const Dashboard = ({ farmers, history }) => { | |||
} | |||
}, [farmers]); | |||
|
|||
React.useEffect(() => { | |||
axiosWithHeader() | |||
.get(pathObj.getFarmersStatistic) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it is better to create a new helper to keep the codebase consistent 👍
Description
Checklist