Template remove add, read-only, chips open modals

This commit is contained in:
adilallo
2026-04-20 13:14:56 -06:00
parent 45bbbb8a35
commit d3bb8cdd0f
9 changed files with 632 additions and 43 deletions
@@ -19,6 +19,7 @@ export function RuleCardView({
logoUrl,
logoAlt,
communityInitials,
hideCategoryAddButton = false,
}: RuleCardViewProps) {
const t = useTranslation("ruleCard");
const ariaLabel = t("ariaLabel")?.replace("{title}", title) || title;
@@ -280,7 +281,7 @@ export function RuleCardView({
onCustomChipClose={(chipId) => {
category.onCustomChipClose?.(category.name, chipId);
}}
addButton={true}
addButton={!hideCategoryAddButton}
addButtonText="" // Empty text for icon-only circular button
className="w-full"
/>