This commit is contained in:
@@ -3426,24 +3426,48 @@ export function DashboardShell({
|
|||||||
<Typography variant="subtitle2" sx={{ fontWeight: 800, overflowWrap: "break-word" }}>
|
<Typography variant="subtitle2" sx={{ fontWeight: 800, overflowWrap: "break-word" }}>
|
||||||
{donation.title}
|
{donation.title}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant="body2" color="text.secondary">
|
|
||||||
{currencyFormatter.format(donation.amount)}
|
|
||||||
{donation.expenseTitle ? ` · ${donation.expenseTitle}` : ""}
|
|
||||||
</Typography>
|
|
||||||
{donation.description ? (
|
{donation.description ? (
|
||||||
<Typography variant="body2" sx={{ mt: 0.4, whiteSpace: "pre-line", overflowWrap: "break-word" }}>
|
<Typography variant="body2" sx={{ mt: 0.4, whiteSpace: "pre-line", overflowWrap: "break-word" }}>
|
||||||
{donation.description}
|
{donation.description}
|
||||||
</Typography>
|
</Typography>
|
||||||
) : null}
|
) : null}
|
||||||
|
<Typography variant="body2" color="text.secondary" sx={{ mt: 0.4 }}>
|
||||||
|
{currencyFormatter.format(donation.amount)}
|
||||||
|
{donation.expenseTitle ? ` · ${donation.expenseTitle}` : ""}
|
||||||
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
<Stack direction="row" gap={0.5}>
|
<Stack direction="row" gap={0.5}>
|
||||||
<IconButton size="small" disabled={busy} onClick={() => setEditingDonationId(donation.id)}>
|
<IconButton
|
||||||
|
size="small"
|
||||||
|
disabled={busy}
|
||||||
|
onClick={() => setEditingDonationId(donation.id)}
|
||||||
|
sx={{
|
||||||
|
width: 36,
|
||||||
|
height: 36,
|
||||||
|
borderRadius: "50%",
|
||||||
|
color: "text.primary",
|
||||||
|
bgcolor: alpha(theme.palette.text.primary, 0.08),
|
||||||
|
"&:hover": {
|
||||||
|
bgcolor: alpha(theme.palette.text.primary, 0.14)
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
>
|
||||||
<EditRoundedIcon fontSize="small" />
|
<EditRoundedIcon fontSize="small" />
|
||||||
</IconButton>
|
</IconButton>
|
||||||
<IconButton
|
<IconButton
|
||||||
size="small"
|
size="small"
|
||||||
color="error"
|
color="error"
|
||||||
disabled={busy}
|
disabled={busy}
|
||||||
|
sx={{
|
||||||
|
width: 36,
|
||||||
|
height: 36,
|
||||||
|
borderRadius: "50%",
|
||||||
|
color: theme.palette.error.main,
|
||||||
|
bgcolor: alpha(theme.palette.error.main, 0.08),
|
||||||
|
"&:hover": {
|
||||||
|
bgcolor: alpha(theme.palette.error.main, 0.14)
|
||||||
|
}
|
||||||
|
}}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (!window.confirm(`Spende "${donation.title}" wirklich löschen?`)) {
|
if (!window.confirm(`Spende "${donation.title}" wirklich löschen?`)) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user