This commit is contained in:
		@@ -121,13 +121,15 @@ function MovementsTable(p: {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  const chooseAccount = useSelectAccount();
 | 
					  const chooseAccount = useSelectAccount();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const [labelFilter, setLabelFilter] = React.useState("");
 | 
					  const [filter, setFilter] = React.useState("");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const filteredList = React.useMemo(() => {
 | 
					  const filteredList = React.useMemo(() => {
 | 
				
			||||||
    return p.movements.filter((m) =>
 | 
					    return p.movements.filter(
 | 
				
			||||||
      m.label.toLowerCase().includes(labelFilter.toLowerCase())
 | 
					      (m) =>
 | 
				
			||||||
 | 
					        m.label.toLowerCase().includes(filter.toLowerCase()) ||
 | 
				
			||||||
 | 
					        m.amount.toString().includes(filter)
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
  }, [p.movements, labelFilter]);
 | 
					  }, [p.movements, filter]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const [rowSelectionModel, setRowSelectionModel] =
 | 
					  const [rowSelectionModel, setRowSelectionModel] =
 | 
				
			||||||
    React.useState<GridRowSelectionModel>({ type: "include", ids: new Set() });
 | 
					    React.useState<GridRowSelectionModel>({ type: "include", ids: new Set() });
 | 
				
			||||||
@@ -382,12 +384,12 @@ function MovementsTable(p: {
 | 
				
			|||||||
    <>
 | 
					    <>
 | 
				
			||||||
      <div style={{ display: "flex" }}>
 | 
					      <div style={{ display: "flex" }}>
 | 
				
			||||||
        <TextField
 | 
					        <TextField
 | 
				
			||||||
          placeholder="Filter by label"
 | 
					          placeholder="Filter by label or amount"
 | 
				
			||||||
          variant="standard"
 | 
					          variant="standard"
 | 
				
			||||||
          size="small"
 | 
					          size="small"
 | 
				
			||||||
          value={labelFilter}
 | 
					          value={filter}
 | 
				
			||||||
          onChange={(e) => {
 | 
					          onChange={(e) => {
 | 
				
			||||||
            setLabelFilter(e.target.value);
 | 
					            setFilter(e.target.value);
 | 
				
			||||||
          }}
 | 
					          }}
 | 
				
			||||||
          style={{ padding: "0px", flex: 1 }}
 | 
					          style={{ padding: "0px", flex: 1 }}
 | 
				
			||||||
        />
 | 
					        />
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -158,7 +158,7 @@ function ImportExportModal(p: {
 | 
				
			|||||||
        </CardContent>{" "}
 | 
					        </CardContent>{" "}
 | 
				
			||||||
        <CardActions>
 | 
					        <CardActions>
 | 
				
			||||||
          <span style={{ flex: 1 }}>
 | 
					          <span style={{ flex: 1 }}>
 | 
				
			||||||
            <RouterLink to={p.exportURL}>
 | 
					            <RouterLink to={p.exportURL} target="_blank">
 | 
				
			||||||
              <Button
 | 
					              <Button
 | 
				
			||||||
                startIcon={<DownloadIcon />}
 | 
					                startIcon={<DownloadIcon />}
 | 
				
			||||||
                variant="outlined"
 | 
					                variant="outlined"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
import { DatePicker } from "@mui/x-date-pickers";
 | 
					import { DateField } from "@mui/x-date-pickers";
 | 
				
			||||||
import { dateToTime, timeToDate } from "../../utils/DateUtils";
 | 
					import { dateToTime, timeToDate } from "../../utils/DateUtils";
 | 
				
			||||||
import { TextFieldVariants } from "@mui/material";
 | 
					import { TextFieldVariants } from "@mui/material";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -13,13 +13,16 @@ export function DateInput(p: {
 | 
				
			|||||||
  variant?: TextFieldVariants;
 | 
					  variant?: TextFieldVariants;
 | 
				
			||||||
}): React.ReactElement {
 | 
					}): React.ReactElement {
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <DatePicker
 | 
					    <DateField
 | 
				
			||||||
      autoFocus={p.autoFocus}
 | 
					      autoFocus={p.autoFocus}
 | 
				
			||||||
      readOnly={p.editable === false}
 | 
					      readOnly={p.editable === false}
 | 
				
			||||||
      label={p.label}
 | 
					      label={p.label}
 | 
				
			||||||
      slotProps={{
 | 
					      slotProps={{
 | 
				
			||||||
        field: { ref: p.ref },
 | 
					        textField: {
 | 
				
			||||||
        textField: { variant: p.variant ?? "standard", style: p.style },
 | 
					          ref: p.ref,
 | 
				
			||||||
 | 
					          variant: p.variant ?? "standard",
 | 
				
			||||||
 | 
					          style: p.style,
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
      }}
 | 
					      }}
 | 
				
			||||||
      value={timeToDate(p.value)}
 | 
					      value={timeToDate(p.value)}
 | 
				
			||||||
      onChange={(v) => {
 | 
					      onChange={(v) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user