MCPcopy Index your code
hub / github.com/code100x/cms / handleOnCloseClick

Function handleOnCloseClick

src/components/NewPostDialog.tsx:68–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 });
67
68 const handleOnCloseClick = () => {
69 router.push(getUpdatedUrl(`${path}/`, paramsObject, { newPost: 'close' }));
70 if (fieldErrors?.content || fieldErrors?.title || fieldErrors?.tags) {
71 setFieldErrors({});
72 }
73 };
74
75 const onSubmit = (event: React.FormEvent<HTMLFormElement>) => {
76 event.preventDefault();

Callers 1

NewPostDialogFunction · 0.85

Calls 1

getUpdatedUrlFunction · 0.90

Tested by

no test coverage detected