diff --git a/frontend/src/pages/MainForm.tsx b/frontend/src/pages/MainForm.tsx index e597a63..54abef2 100644 --- a/frontend/src/pages/MainForm.tsx +++ b/frontend/src/pages/MainForm.tsx @@ -9,8 +9,7 @@ import { Chip, Box, Paper, - Menu, - MenuItem, + Typography, } from "@mui/material"; import { useTranslation } from "react-i18next"; import { useState, useEffect } from "react"; @@ -48,16 +47,6 @@ export const MainForm = () => { const [users, setUsers] = useState([]); const [selectedUser, setSelectedUser] = useState(null); - // Payment Methods Menu States - const [anchorEl, setAnchorEl] = React.useState(null); - const open = Boolean(anchorEl); - const handleClick = (event: React.MouseEvent) => { - setAnchorEl(event.currentTarget); - }; - const handleClose = () => { - setAnchorEl(null); - }; - useEffect(() => { // Fetch user data or any other data needed for the form try { @@ -126,11 +115,33 @@ export const MainForm = () => { }; return ( - +
{ @@ -162,10 +173,14 @@ export const MainForm = () => { color="primary" sx={{ alignSelf: "flex-start", - fontWeight: "bold", - fontSize: "1rem", - py: 2, - px: 1, + fontWeight: 500, + fontSize: "0.9rem", + mt: 0.5, + mb: 0.5, + py: 0.5, + px: 1.25, + borderRadius: "999px", + background: "linear-gradient(135deg, #1976d2 0%, #1565c0 100%)", }} /> @@ -247,7 +262,14 @@ export const MainForm = () => { {/* Invoice Fields */} {invoice && ( - + { )} {/* Payment Methods */} - - - { - setFormData({ ...formData, paymentMethod: "bar" }); - handleClose(); + + - {t("cash")} - - { - setFormData({ ...formData, paymentMethod: "paypal" }); - handleClose(); - }} - > - {t("paypal")} - - { - setFormData({ ...formData, paymentMethod: "andere" }); - handleClose(); - }} - > - {t("transfer")} - - + {t("select-payment-method")} * + + + + + + + {!formData.paymentMethod && ( + {}} + /> + )} + {/* Submit Button */}