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

Update dive log screens and defaults #70

Merged
merged 6 commits into from
Sep 15, 2022
Merged

Update dive log screens and defaults #70

merged 6 commits into from
Sep 15, 2022

Conversation

mjmayank
Copy link
Collaborator

@mjmayank mjmayank commented Sep 12, 2022

Edits to profile page:
image

Copy link
Collaborator

@Nnanyielugo Nnanyielugo left a comment

Choose a reason for hiding this comment

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

Looks good, apart from the delete dive log function that should be moved to the file where similar functions live.

const url = `${config.API_ENDPOINT}/review/delete?review_id=${diveLog.review.id}`;
fetch(url, {
method: 'POST',
headers: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should move this function to redux/slices/dive-logs/api

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

: user?.unit === 'imperial'
? 60
: 20,
: undefined,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are you sure initialising to undefined is a great idea?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, i don't want users to accidentally submit incorrect values. i'd rather have it be undefined

@mjmayank mjmayank merged commit e6df8b3 into main Sep 15, 2022
@mjmayank mjmayank deleted the update-dive-log branch September 15, 2022 22:38
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