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

chore: function to form aplllied #146

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ErfoJS
Copy link
Contributor

@ErfoJS ErfoJS commented Nov 22, 2023

No description provided.

Copy link

vercel bot commented Nov 22, 2023

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

Name Status Preview Comments Updated (UTC)
coderscrew-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 22, 2023 1:36pm

body: JSON.stringify(data),
method: 'POST'
});
console.log(resopnse);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We would like to show some popup that will tell us if it failed or succeed. react-toastify is cool

Comment on lines +7 to +13
const App = ({ Component, pageProps }: AppProps) => {
return (
<Layout>
<Component {...pageProps} />
</Layout>
);
};
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can revert this

@@ -14,6 +14,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'POST') {
const { name, email, guild, message } = req.body;
const response = schema.safeParse(req.body);
console.log(req.body);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove console log

Copy link
Collaborator

Choose a reason for hiding this comment

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

Revert changes in this file

Copy link
Collaborator

@jedrzejratajczak jedrzejratajczak left a comment

Choose a reason for hiding this comment

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

up

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