Skip to content

Commit

Permalink
Merge pull request #1638 from dxc-technology/gomezivann/deprecate-nam…
Browse files Browse the repository at this point in the history
…e-fileInput

Deprecate `name` prop in File input
  • Loading branch information
Jialecl committed Jun 22, 2023
2 parents de7c6b0 + f7fa388 commit 9e54008
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
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
@@ -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 9e54008

Please sign in to comment.