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

Enhancements of task form #47

Conversation

dannymatkovsky
Copy link
Collaborator

@BlueSkyAndSomeCurses you can merge this PR into your #44 PR.

Copy link

github-actions bot commented Jun 6, 2024

Visit the preview URL for this PR (updated for commit 73295f7):

https://goal-tracker-app-38cdb--pr47-danny-some-enhanceme-i8fgkrot.web.app

(expires Thu, 13 Jun 2024 21:07:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4c4e709ef030d53d132aff41682ebb65bb7a0d4c

Comment on lines -38 to -40



Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Formatter fixes

Comment on lines +36 to +44
useEffect(() => {
setDefaultFormValues({
name: task.name,
deadline: task.deadline,
description: task.description,
importance: task.importance,
});
}, [task]);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same fix as in #38

@@ -4,7 +4,7 @@ export interface Task {
name: string;
description: string;
importance: number;
deadline: Timestamp;
deadline: Timestamp | null;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This prevent formatter from removing optional chaining in task.deadline?.

@BlueSkyAndSomeCurses BlueSkyAndSomeCurses merged commit 278f028 into anton/update-add-form-design Jun 6, 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.

2 participants