Skip to content

Commit

Permalink
Update services/ui-src/src/components/fields/DateField.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: benmartin-coforma <126210497+benmartin-coforma@users.noreply.github.com>
  • Loading branch information
angelaco11 and benmartin-coforma authored Dec 9, 2024
1 parent dacfff2 commit a98fa2e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions services/ui-src/src/components/fields/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ import { DateTemplate } from "../../types/report";

export const DateField = (props: PageElementProps) => {
const dateTextbox = props.element as DateTemplate;
/**
* This is a hack to get the custom design system component to accept the
* disabled prop, if used directly in the component, it will throw a ts error
*/
const disabled = { disabled: props.disabled };
const defaultValue = dateTextbox.answer ?? "";
const [displayValue, setDisplayValue] = useState<string>(defaultValue);

Expand Down

0 comments on commit a98fa2e

Please sign in to comment.