fixed vite related issues, leftover issues from Moving to MUI, some visual changes

This commit is contained in:
QkoSad
2024-09-24 22:43:21 +03:00
parent d9455d002b
commit be03889ff3
22 changed files with 355 additions and 283 deletions
+3 -3
View File
@@ -16,9 +16,9 @@ const CommentForm = ({ postId }: { postId: string }) => {
flexDirection="column"
alignItems="left"
gap="1rem"
onSubmit={async (e) => {
onSubmit={(e) => {
e.preventDefault();
await dispatch(addComment(postId, { text }));
dispatch(addComment(postId, { text }));
setText("");
}}
>
@@ -31,7 +31,7 @@ const CommentForm = ({ postId }: { postId: string }) => {
value={text}
onChange={(e) => setText(e.target.value)}
/>
<Button>Submit</Button>
<Button type="submit">Submit</Button>
</Box>
</Container>
);