Skip to content

Commit

Permalink
added review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Swathi-eGov committed Oct 28, 2024
1 parent 45fadca commit 4779fa8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -404,62 +404,6 @@ const FacilityPopUp = ({ details, onClose }) => {
{viewDetails && accessibilityData && <AccessibilityPopUp onClose={() => closeViewDetails()} census={accessibilityData} />}
{viewDetails && securityData && <SecurityPopUp onClose={() => closeViewDetails()} census={securityData} />}
</Card>
{/* <div className="card-container" style={{ border: "1px solid #D6D5D4", borderRadius: "3px" }}>
{selectedRows.length > 0 && (
<div className="selection-state-wrapper">
<div className="svg-state-wrapper">
<SVG.DoneAll width={"1.5rem"} height={"1.5rem"} fill={"#C84C0E"}></SVG.DoneAll>
<div className={"selected-state"}>{`${selectedRows.length} ${
selectedRows?.length === 1 ? t("MICROPLAN_SELECTED") : t("MICROPLAN_SELECTED_PLURAL")
}`}</div>
</div>
<div className={`table-actions-wrapper`}>
<Button
className={"campaign-type-alert-button"}
variation="secondary"
label={
facilityAssignedStatus
? `${t("MICROPLAN_UNASSIGN_FACILITY")} ${details?.additionalDetails?.facilityName}`
: `${t("MICROPLAN_ASSIGN_FACILITY")} ${details?.additionalDetails?.facilityName}`
}
type="button"
onClick={handleAssignUnassign}
size={"large"}
icon={"AddIcon"}
/>
</div>
</div>
)}
{tableLoader ? (
<Loader />
) : (
censusData && (
<DataTable
columns={columns}
data={censusData}
pagination
paginationServer
paginationDefaultPage={currentPage}
paginationPerPage={rowsPerPage}
onChangePage={handlePageChange}
onChangeRowsPerPage={handleRowsPerPageChange}
paginationRowsPerPageOptions={[10, 20, 50, 100]}
paginationTotalRows={totalCensusCount}
// style={{ marginTop: "20px", border: "1px solid #D6D5D4", borderRadius: "3px" }}
selectableRows
selectableRowsHighlight
noContextMenu
onSelectedRowsChange={handleRowSelect}
customStyles={tableCustomStyle}
selectableRowsComponent={CheckBox}
selectableRowsComponentProps={selectProps}
/>
)
)}
{viewDetails && accessibilityData && <AccessibilityPopUp onClose={() => closeViewDetails()} census={accessibilityData} />}
{viewDetails && securityData && <SecurityPopUp onClose={() => closeViewDetails()} census={securityData} />}
</div> */}
{showToast && (
<Toast
type={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const SearchJurisdiction = ({ boundaries, jurisdiction, onSubmit = () => { }, on
}}
/>
</LabelFieldPair>
<LabelFieldPair style={{ flexDirection: "column", gap: "0rem", , marginBottom: 0 }}>
<LabelFieldPair style={{ flexDirection: "column", gap: "0rem",marginBottom: 0 }}>
<CardLabel style={{width:"100%"}}>{t("SELECT_BOUNDARIES")}</CardLabel>
<div style={{width: "100%" }}>
<MultiSelectDropdown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const TimelinePopUpWrapper = ({ onClose, businessId, heading }) => {

// Map API response to timeline steps
const steps = workflowData.ProcessInstances.map((instance, index) => ({
label: instance.state.applicationStatus,
label: t(instance.state.applicationStatus),
variant: 'completed',
subElements: [Digit.Utils.microplanv1.epochToDateTime(instance?.auditDetails?.lastModifiedTime),
instance?.assignes?.length > 0 ? instance.assignes[0]?.name : 'NA',
Expand Down

0 comments on commit 4779fa8

Please sign in to comment.