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

Add currency form #472

Closed
wants to merge 1 commit into from
Closed

Conversation

bookernath
Copy link

Copy link

vercel bot commented Jan 22, 2025

@bookernath is attempting to deploy a commit to the Makeswift Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@migueloller migueloller left a comment

Choose a reason for hiding this comment

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

Got a couple of comments. I'm aware that the ones on the error handling were copy/pasted from the locales form so not going to block the PR for that.

Comment on lines +30 to +31
import { Link } from '~/components/link';
import { usePathname } from '~/i18n/routing';
Copy link
Member

Choose a reason for hiding this comment

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

These imports are Catalyst-only

const activeCurrency = currencies.find((currency) => currency.id === activeCurrencyId);

useEffect(() => {
if (lastResult?.error) console.log(lastResult.error);
Copy link
Member

Choose a reason for hiding this comment

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

We should use alerts here together with useForm from conform to avoid reaching into lastResult which is meant to be opaque

@bookernath
Copy link
Author

closing so @jorgemoya can open a new one from a branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants