Skip to content

Commit

Permalink
fixing PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dottyy committed May 30, 2024
1 parent 6f71e41 commit 5855ad8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/admin/components/Actions/ListActionsCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ interface ListActionsCreateProps {
onExport?: () => void;
}

const ListActionsCreate = (props: ListActionsCreateProps) => (
const ListActionsCreate = ({ onExport }: ListActionsCreateProps) => (
<TopToolbar>
<CreateButton className="filter-button-page-admin" />
<When condition={!!props.onExport}>
<Button className="button-page-admin" label="Export" startIcon={<DownloadIcon />} onClick={props.onExport} />
<When condition={!!onExport}>
<Button className="button-page-admin" label="Export" startIcon={<DownloadIcon />} onClick={onExport} />
</When>
</TopToolbar>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const ComentarySection = ({
/>
<When condition={viewCommentsList}>
<div className="max-h-[60vh] min-h-[10vh] grid-cols-[14%_20%_18%_15%_33%] overflow-auto">
{auditLogData !== null && auditLogData !== undefined ? (
{auditLogData ? (
auditLogData.length > 0 ? (
auditLogData
.filter((item: any) => item.type === "comment")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const StatusDisplay = ({ titleStatus = "Polygon", mutate, refresh, name, record,
} finally {
refresh();
reloadEntity();
closeModal;
closeModal();
}
}}
/>
Expand Down Expand Up @@ -219,7 +219,7 @@ const StatusDisplay = ({ titleStatus = "Polygon", mutate, refresh, name, record,
} finally {
refresh();
reloadEntity();
closeModal;
closeModal();
}
}}
/>
Expand Down

0 comments on commit 5855ad8

Please sign in to comment.