Skip to content

Commit

Permalink
CMDCT-4065: eslint pain
Browse files Browse the repository at this point in the history
  • Loading branch information
angelaco11 committed Dec 6, 2024
1 parent ed23e48 commit a2ec1f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions services/ui-src/src/components/fields/DateField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ 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
/**
* 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 a2ec1f1

Please sign in to comment.