Skip to content

Commit

Permalink
TaskAddInputコンポーネントの作成
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yoshiii committed Apr 30, 2022
1 parent f71f479 commit a351ca8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/task/TaskCardTitle.tsx
Expand Up @@ -10,7 +10,6 @@ const TaskCardTitle: FC = () => {
console.log(isClick);
};
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
console.log(inputCardTitle);
setInputCardTitle(e.target.value);
};
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
Expand All @@ -21,7 +20,7 @@ const TaskCardTitle: FC = () => {
setIsClick(false);
};
return (
<Box component="div" onClick={handleClick}>
<Box component="div" sx={{ mb: 4 }} onClick={handleClick}>
{isClick ? (
<FormControl
fullWidth
Expand Down
16 changes: 15 additions & 1 deletion src/components/task/input/TaskCardAddInput.tsx
@@ -1,7 +1,21 @@
import { FormControl, TextField } from "@mui/material";
import React, { FC } from "react";

const TaskCardAddInput: FC = () => {
return <div></div>;
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault;
console.log(e);
};
return (
<FormControl
fullWidth
component="form"
variant="standard"
onSubmit={handleSubmit}
>
<TextField label="Add a task" />
</FormControl>
);
};

export default TaskCardAddInput;

0 comments on commit a351ca8

Please sign in to comment.