Skip to content
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/displaying-tasks #3

Merged
merged 3 commits into from Mar 16, 2024
Merged

feat/displaying-tasks #3

merged 3 commits into from Mar 16, 2024

Conversation

bonz88
Copy link
Owner

@bonz88 bonz88 commented Mar 15, 2024

No description provided.

Copy link

vercel bot commented Mar 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
task-management-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 16, 2024 9:53am

Comment on lines 14 to 18
const priorityComplexityDesc = (desc: number) => {
if (desc < 4) return "Low";
if (desc < 7) return "Medium";
return "High";
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not depend on state, you can move it out of the component or you can wrap it in useCallback so it does not get created again and again.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. I'll move the function outside component, and I'll merge it to main.

@bonz88 bonz88 merged commit 03c4c0d into main Mar 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants