Skip to content

Commit

Permalink
Merge pull request #585 from Enterprise-CMCS/master
Browse files Browse the repository at this point in the history
Release to val
  • Loading branch information
benjaminpaige authored Jun 18, 2024
2 parents cc186d5 + f639f0a commit df630a1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/packages/shared-utils/package-actions/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ const arUpdateId: ActionRule = {
};
const arCompleteIntake: ActionRule = {
action: Action.COMPLETE_INTAKE,
check: (checker, user) => isCmsWriteUser(user) && checker.needsIntake,
check: (checker, user) =>
false && isCmsWriteUser(user) && checker.needsIntake,
};

// TODO: Add rule for remove-appk-child
Expand Down
2 changes: 1 addition & 1 deletion src/services/ui/src/components/Inputs/radio-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const RadioGroupItem = React.forwardRef<
<RadioGroupPrimitive.Item
ref={ref}
className={cn(
"aspect-square h-6 w-6 my-2 rounded-full border-2 empty:border-black border-primary text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
"aspect-square h-6 my-2 rounded-full border-2 empty:border-black border-primary text-primary focus:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
className,
)}
{...props}
Expand Down
2 changes: 1 addition & 1 deletion src/services/ui/src/components/RHF/SlotField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export const OptChildren = ({
control={control}
name={parentId + SLOT.name}
{...(SLOT.rules && { rules: SLOT.rules })}
render={RHFSlot({ ...SLOT, control })}
render={RHFSlot({ ...SLOT, parentId, control })}
/>
</div>
))}
Expand Down
6 changes: 1 addition & 5 deletions src/services/ui/src/utils/labelMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ export const mapActionLabel = (a: Action) => {
case Action.UPDATE_ID:
return "Update ID";
case Action.COMPLETE_INTAKE:
// Poor man's feature flag.
return config.cognito.REDIRECT_SIGNIN.includes("localhost") ||
config.cognito.REDIRECT_SIGNIN.includes("cloudfront")
? "Complete Intake"
: "";
return "Complete Intake";
default:
return "";
}
Expand Down

0 comments on commit df630a1

Please sign in to comment.