+
+
{condition.label}
handleUpdate("value", e.target.value)}
/>
-
);
diff --git a/src/pages/CampaignRuleWizard/CriteriaBuilder/RuleGroup.tsx b/src/pages/CampaignRuleWizard/CriteriaBuilder/RuleGroup.tsx
index 9f741da..43c1c41 100644
--- a/src/pages/CampaignRuleWizard/CriteriaBuilder/RuleGroup.tsx
+++ b/src/pages/CampaignRuleWizard/CriteriaBuilder/RuleGroup.tsx
@@ -21,11 +21,11 @@ export function RuleGroup({ id, operator, conditions, onDeleteGroup, onOperatorC
return (
-
+
-
+
{conditions.length === 0 ? (
Drop condition here
diff --git a/src/pages/CampaignRuleWizard/CriteriaBuilder/Sidebar.tsx b/src/pages/CampaignRuleWizard/CriteriaBuilder/Sidebar.tsx
index e968e95..c081436 100644
--- a/src/pages/CampaignRuleWizard/CriteriaBuilder/Sidebar.tsx
+++ b/src/pages/CampaignRuleWizard/CriteriaBuilder/Sidebar.tsx
@@ -195,8 +195,8 @@ export function Sidebar() {
}, [search, selectedGroupIds]);
return (
-
-
+
+
{/* Ô tìm kiếm */}
@@ -256,7 +256,7 @@ export function Sidebar() {
-
+
{filteredGroups.length === 0 ? (
Không tìm thấy trường nào.
diff --git a/src/pages/CampaignRuleWizard/CriteriaBuilder/index.tsx b/src/pages/CampaignRuleWizard/CriteriaBuilder/index.tsx
index ef85b2f..8bcf0e8 100644
--- a/src/pages/CampaignRuleWizard/CriteriaBuilder/index.tsx
+++ b/src/pages/CampaignRuleWizard/CriteriaBuilder/index.tsx
@@ -67,24 +67,7 @@ export function CriteriaBuilder() {
return (
-
-
Match
-
- updateState("criteria", { globalOperator: "AND" })}
- className={`px-3 py-1 rounded-sm transition-colors ${state.criteria.globalOperator === "AND" ? "bg-white shadow-sm" : "text-muted-foreground"}`}
- >
- ALL
-
- updateState("criteria", { globalOperator: "OR" })}
- className={`px-3 py-1 rounded-sm transition-colors ${state.criteria.globalOperator === "OR" ? "bg-white shadow-sm" : "text-muted-foreground"}`}
- >
- ANY
-
-
-
of the following groups:
-
+
diff --git a/src/pages/CampaignRuleWizard/GlobalSummaryPanel.tsx b/src/pages/CampaignRuleWizard/GlobalSummaryPanel.tsx
index 0b3b2a5..7f09db3 100644
--- a/src/pages/CampaignRuleWizard/GlobalSummaryPanel.tsx
+++ b/src/pages/CampaignRuleWizard/GlobalSummaryPanel.tsx
@@ -6,13 +6,13 @@ export function GlobalSummaryPanel() {
const { general, criteria, formula, notification } = state;
return (
-
-
-
Campaign Summary
-
Live preview of your configurations
+
+
+
Campaign Summary
+
Live preview of configurations
-
+
{/* General Info */}
@@ -24,20 +24,20 @@ export function GlobalSummaryPanel() {
setStep(0)} className="text-xs text-primary hover:underline">Edit
-
-
+
+
{general.name ? (
<>
-
Name: {general.name}
- {general.type &&
Type: {general.type}
}
+
Name: {general.name}
+ {general.type &&
Type: {general.type}
}
{general.effectiveDateStart && (
-
+
{general.effectiveDateStart} {general.effectiveDateEnd && `to ${general.effectiveDateEnd}`}
-
+
)}
>
) : (
-
+
Not configured yet
)}
@@ -57,33 +57,37 @@ export function GlobalSummaryPanel() {
setStep(1)} className="text-xs text-primary hover:underline">Edit
-
-
+
+
{criteria.groups.length > 0 ? (
-
-
Match {criteria.globalOperator} of:
+
{criteria.groups.map((g, i) => (
-
-
- Group {i + 1}
- {g.operator}
-
-
+
+
+ Group {i + 1}
+ {g.operator}
+
+
) : (
@@ -104,7 +108,7 @@ export function GlobalSummaryPanel() {
setStep(2)} className="text-xs text-primary hover:underline">Edit
-
+
Pending configuration
@@ -122,7 +126,7 @@ export function GlobalSummaryPanel() {
setStep(3)} className="text-xs text-primary hover:underline">Edit
-
+
Pending configuration
diff --git a/src/pages/CampaignRuleWizard/index.tsx b/src/pages/CampaignRuleWizard/index.tsx
index ae0eda3..078e5de 100644
--- a/src/pages/CampaignRuleWizard/index.tsx
+++ b/src/pages/CampaignRuleWizard/index.tsx
@@ -24,10 +24,8 @@ function WizardContent() {
-
-
-
-
+
+
{currentStep === 0 && }
{currentStep === 1 && }
{currentStep === 2 && }