Skip to content

Commit

Permalink
Deprecate name prop in File input
Browse files Browse the repository at this point in the history
  • Loading branch information
GomezIvann committed Jun 21, 2023
1 parent de7c6b0 commit f7fa388
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/file-input/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ type FileData = {

type CommonProps = {
/**
* Name attribute.
* @deprecated Name attribute.
*/
name?: string;
/**
Expand Down
14 changes: 12 additions & 2 deletions website/screens/components/file-input/code/FileInputCodePage.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { DxcFlex, DxcTable, DxcLink } from "@dxc-technology/halstack-react";
import {
DxcFlex,
DxcTable,
DxcLink,
DxcGrid,
} from "@dxc-technology/halstack-react";
import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
import QuickNavContainer from "@/common/QuickNavContainer";
import Code from "@/common/Code";
Expand Down Expand Up @@ -26,7 +31,12 @@ const sections = [
<tr>
<td>name: string</td>
<td></td>
<td>Name attribute.</td>
<td>
<DxcGrid gap="0.25rem" placeItems="start">
<StatusTag status="Deprecated">Deprecated</StatusTag>
Name attribute.
</DxcGrid>
</td>
</tr>
<tr>
<td>mode: 'file' | 'filedrop' | 'dropzone'</td>
Expand Down

0 comments on commit f7fa388

Please sign in to comment.