From 2afedcd5f9c3b7b4d9b305467d9fcc4307557a38 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Tue, 22 Apr 2025 12:24:03 +0200 Subject: [PATCH] Ready to implement next feature --- moneymgr_web/src/routes/AccountRoute.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/moneymgr_web/src/routes/AccountRoute.tsx b/moneymgr_web/src/routes/AccountRoute.tsx index 99b9cbc..c62cb0e 100644 --- a/moneymgr_web/src/routes/AccountRoute.tsx +++ b/moneymgr_web/src/routes/AccountRoute.tsx @@ -1,4 +1,5 @@ import DeleteIcon from "@mui/icons-material/DeleteOutlined"; +import DriveFileMoveOutlineIcon from "@mui/icons-material/DriveFileMoveOutline"; import { Tooltip, Typography } from "@mui/material"; import { DataGrid, GridActionsCellItem, GridColDef } from "@mui/x-data-grid"; import React from "react"; @@ -89,6 +90,12 @@ function MovementsTable(p: { const alert = useAlert(); const confirm = useConfirm(); + // Change account of movement + const handleMoveClick = async (movement: Movement) => { + // TODO + }; + + // Delete movement const handleDeleteClick = async (movement: Movement) => { try { if ( @@ -168,6 +175,14 @@ function MovementsTable(p: { editable: false, getActions: (params) => { return [ + + } + label="Move to another account" + onClick={() => handleMoveClick(params.row)} + color="inherit" + /> + , }