Skip to content

Commit

Permalink
fix: remove conditionalAmountWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Aug 9, 2022
1 parent 27733a2 commit ce7a75b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 94 deletions.
9 changes: 3 additions & 6 deletions app/lib/theme/CustomDiffFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ const CUSTOM_DIFF_FIELDS: Record<
id,
formContext?.oldData?.[props.name],
formData,
uiSchema?.["ui:widget"] === "MoneyWidget" ||
uiSchema?.["ui:widget"] === "ConditionalAmountWidget",
uiSchema?.["ui:widget"] === "MoneyWidget",
uiSchema?.["ui:widget"] === "PercentageWidget"
);
} else if (
Expand All @@ -283,8 +282,7 @@ const CUSTOM_DIFF_FIELDS: Record<
return showNumberAdded(
id,
formData,
uiSchema?.["ui:widget"] === "MoneyWidget" ||
uiSchema?.["ui:widget"] === "ConditionalAmountWidget",
uiSchema?.["ui:widget"] === "MoneyWidget",
uiSchema?.["ui:widget"] === "PercentageWidget"
);
} else if (
Expand All @@ -294,8 +292,7 @@ const CUSTOM_DIFF_FIELDS: Record<
return showNumberRemoved(
id,
formContext?.oldData?.[props.name],
uiSchema?.["ui:widget"] === "MoneyWidget" ||
uiSchema?.["ui:widget"] === "ConditionalAmountWidget",
uiSchema?.["ui:widget"] === "MoneyWidget",
uiSchema?.["ui:widget"] === "PercentageWidget"
);
} else {
Expand Down
2 changes: 0 additions & 2 deletions app/lib/theme/FormWithTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import SelectParentWidget from "lib/theme/widgets/SelectParentWidget";
import MoneyWidget from "lib/theme/widgets/MoneyWidget";
import PhoneNumberWidget from "lib/theme/widgets/PhoneNumberWidget";
import DueDateWidget from "lib/theme/widgets/DueDateWidget";
import ConditionalAmountWidget from "./widgets/ConditionalAmountWidget";
import DateWidget from "./widgets/DateWidget";
import { AdjustableCalculatedValueWidget } from "./widgets/AdjustableCalculatedValueWidget";
import ReadOnlyCalculatedValueWidget from "./widgets/ReadOnlyCalculatedValueWidget";
Expand All @@ -31,7 +30,6 @@ const formTheme: ThemeProps = {
SelectWidget: SelectWidget,
SelectParentWidget: SelectParentWidget,
MoneyWidget: MoneyWidget,
ConditionalAmountWidget: ConditionalAmountWidget,
PhoneNumberWidget,
DueDateWidget: DueDateWidget,
DateWidget,
Expand Down
1 change: 0 additions & 1 deletion app/lib/theme/ReadOnlyTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const readOnlyTheme: ThemeProps = {
PhoneNumberWidget: ReadOnlyWidget,
SelectRfpWidget: ReadOnlyWidget,
SelectProjectStatusWidget: ReadOnlyWidget,
ConditionalAmountWidget: ReadOnlyMoneyWidget,
DueDateWidget: ReadOnlyDateWidget,
DateWidget: ReadOnlyDateWidget,
AdjustableCalculatedValueWidget: ReadOnlyAdjustableCalculatedValueWidget,
Expand Down
85 changes: 0 additions & 85 deletions app/lib/theme/widgets/ConditionalAmountWidget.tsx

This file was deleted.

0 comments on commit ce7a75b

Please sign in to comment.