Skip to content

Commit

Permalink
Merge pull request #620 from LifeSG/BOOKINGSG-6445
Browse files Browse the repository at this point in the history
[BOOKINGSG-6445][JS] add JSX.Element to file-upload `errorMessage` type
  • Loading branch information
qroll authored Dec 3, 2024
2 parents 4cebc6d + 9840443 commit e42a9b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/file-upload/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface FileUploadProps extends FileInputProps {
/** Specifies if sorting is enabled for the file items */
sortable?: boolean | undefined;
/** The general error message for the component */
errorMessage?: string | undefined;
errorMessage?: string | JSX.Element | undefined;
/** Indicates if the component is in the readonly state */
readOnly?: boolean | undefined;
/** Called when an upload happens via drag drop or click */
Expand Down
2 changes: 1 addition & 1 deletion stories/file-upload/props-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const DATA: ApiTableSectionProps[] = [
{
name: "errorMessage",
description: "The general error message for the component",
propTypes: ["string"],
propTypes: ["string", "JSX.Element"],
},
{
name: "readOnly",
Expand Down

0 comments on commit e42a9b9

Please sign in to comment.