feat: board name editing
This commit is contained in:
@ -4,7 +4,7 @@ import { Box, Group, TextInput } from "@mantine/core";
|
||||
import { useBoardsContext } from "@/app/deals/contexts/BoardsContext";
|
||||
|
||||
const CreateBoardButton = () => {
|
||||
const { onCreateBoardClick } = useBoardsContext();
|
||||
const { onCreateBoard } = useBoardsContext();
|
||||
const [isWriting, setIsWriting] = useState<boolean>(false);
|
||||
const [name, setName] = useState<string>("");
|
||||
|
||||
@ -17,7 +17,7 @@ const CreateBoardButton = () => {
|
||||
|
||||
const onCompleteCreating = () => {
|
||||
if (name) {
|
||||
onCreateBoardClick(name);
|
||||
onCreateBoard(name);
|
||||
}
|
||||
setIsWriting(false);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user