Skip to content

Commit

Permalink
UI fix (#350)
Browse files Browse the repository at this point in the history
Co-authored-by: nabeelmd-eGov <[email protected]>
  • Loading branch information
nabeelmd-eGov and nabeelmd-eGov authored Apr 19, 2024
1 parent a41e3e9 commit 8b8faad
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
2 changes: 1 addition & 1 deletion micro-ui/web/micro-ui-internals/example/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/> -->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].15-campaign/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].16-campaign/dist/index.css" />
<!-- added below css for hcm-workbench module inclusion-->

<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> -->
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/micro-ui-internals/packages/css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@egovernments/digit-ui-css",
"version": "1.0.15-campaign",
"version": "1.0.16-campaign",
"license": "MIT",
"main": "dist/index.css",
"author": "Jagankumar <[email protected]>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,3 +154,7 @@ input[type="date"]::-webkit-calendar-picker-indicator {
.digit-employee-card-input.numeric {
pointer-events: none;
}
.product-tag-container {
display: flex;
gap: 1.5rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const UICustomizations = {
data.body.CampaignDetails = {
tenantId: tenantId,
status: "started",
startDate: Date.now(),
// startDate: Date.now(),
pagination: {
sortBy: "campaignNumber",
sortOrder: "asc",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,22 @@ const AddDeliveryRule = ({ targetedData, deliveryRules, setDeliveryRules, index,
index={index}
key={key}
/>

{delivery?.products?.length > 0 &&
delivery?.products?.map((i) => {
return i?.value && i?.count ? <RemoveableTagNew text={{ value: i.value }} onClick={() => removeProduct(i)} /> : null;
})}
<div className="product-tag-container">
{delivery?.products?.length > 0 &&
delivery?.products?.map((i) => {
return i?.value && i?.count ? (
<RemoveableTagNew
extraStyles={{
closeIconStyles: {
fill: "#505A5F",
},
}}
text={{ value: i.value }}
onClick={() => removeProduct(i)}
/>
) : null;
})}
</div>
<Button
variation="secondary"
label={t(`CAMPAIGN_ADD_PRODUCTS_BUTTON_TEXT`)}
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<!-- added below css for hcm-workbench module inclusion-->
<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> -->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].15-campaign/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].16-campaign/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#00bcd1" />
Expand Down

0 comments on commit 8b8faad

Please sign in to comment.