Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
MAT-7685 redo IntegerComponent props
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecilia Liu committed Oct 17, 2024
1 parent c58c37c commit 5099443
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import "twin.macro";
import "styled-components/macro";
import { TypeComponentProps } from "./TypeComponentProps";

type IntegerComponentProps = Partial<TypeComponentProps> & {
typeProps: TypeComponentProps;
unsignedInt?: boolean;
};

const IntegerComponent = ({
canEdit,
fieldRequired,
Expand All @@ -12,7 +17,7 @@ const IntegerComponent = ({
label = "Integer",
structureDefinition,
unsignedInt = true,
}: TypeComponentProps) => {
}: IntegerComponentProps) => {
const POSITIVEINT_MINIMUM = 1;
const POSITIVEINT_MAXIMUM = 2147483647;
const UNSIGNED_MINIMUM = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export interface TypeComponentProps {
onChange?: (nextValue: any) => void;
structureDefinition: any;
fieldRequired: boolean;
unsignedInt?: boolean;
}

0 comments on commit 5099443

Please sign in to comment.