Skip to content

Commit

Permalink
OM-335: change edit button if moldova, change export button styles
Browse files Browse the repository at this point in the history
  • Loading branch information
olewandowski1 committed Oct 17, 2024
1 parent 8f121fe commit 0839d3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/BillSearcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { injectIntl } from "react-intl";

import { IconButton, Tooltip, Button, Dialog, DialogActions, DialogTitle, DialogContent } from "@material-ui/core";
import EditIcon from "@material-ui/icons/Edit";
import VisibilityIcon from '@material-ui/icons/Visibility';
import DeleteIcon from "@material-ui/icons/Delete";

import {
Expand Down Expand Up @@ -176,7 +177,7 @@ const BillSearcher = ({
onClick={(e) => e.stopPropagation() && onDoubleClick(bill)}
disabled={deletedBillUuids.includes(bill.id)}
>
<EditIcon />
{isWorker ? <VisibilityIcon /> : <EditIcon />}
</IconButton>
</Tooltip>
)}
Expand Down Expand Up @@ -331,6 +332,7 @@ const BillSearcher = ({
"status": "Status",
}}
additionalExportFields={additionalExportFields}
downloadWithIconButton={isWorker}
/>
{failedExport && (
<Dialog open={failedExport} fullWidth maxWidth="sm">
Expand Down

0 comments on commit 0839d3c

Please sign in to comment.