Skip to content

Commit

Permalink
Refactor(web-react): Remove forgotten deprecation message
Browse files Browse the repository at this point in the history
- Remove the deprecation message from the FileUploaderInput component

- Solves #DS-1525
  • Loading branch information
pavelklibani committed Oct 31, 2024
1 parent efe71c9 commit a0d5d5e
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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 (
<div
{...transferProps}
Expand Down

0 comments on commit a0d5d5e

Please sign in to comment.