From a0d5d5e1ab2df7d60aa0221679af228c1002bf22 Mon Sep 17 00:00:00 2001 From: Pavel Klibani Date: Wed, 30 Oct 2024 14:37:19 +0100 Subject: [PATCH] Refactor(web-react): Remove forgotten deprecation message - Remove the deprecation message from the FileUploaderInput component - Solves #DS-1525 --- .../src/components/FileUploader/FileUploaderInput.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx b/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx index d704a3eb0a..26dc469941 100644 --- a/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx +++ b/packages/web-react/src/components/FileUploader/FileUploaderInput.tsx @@ -2,7 +2,7 @@ import classNames from 'classnames'; import React, { useEffect, useState } from 'react'; -import { useDeprecationMessage, useStyleProps } from '../../hooks'; +import { useStyleProps } from '../../hooks'; import { SpiritFileUploaderInputProps } from '../../types'; import { HelperText, ValidationText, useAriaIds } from '../Field'; import { Icon } from '../Icon'; @@ -70,13 +70,6 @@ const FileUploaderInput = (props: SpiritFileUploaderInputProps) => { setIsDragAndDropSupported('draggable' in document.createElement('span')); }, []); - useDeprecationMessage({ - method: 'custom', - trigger: !id, - componentName: 'FileUploader', - customText: 'The "id" property will be required instead of optional starting from the next major version.', - }); - return (