From 8d00bf884f852e3b649dfc14dd36b68084a6b3c6 Mon Sep 17 00:00:00 2001 From: Inomdzhon Mirdzhamolov Date: Thu, 18 Jan 2024 18:30:56 +0300 Subject: [PATCH] codemode(chips-input): mv inputAriaLabel to placeholder (#6406) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit После #6367 `inputLabel` (a.k.a `inputAriaLabel`) был удалён. Вместо него нужно использовать либо `placeholder`, либо оборачивать в `FormItem`. --- .../src/transforms/__tests__/__snapshots__/chips-input.ts.snap | 2 +- packages/codemods/src/transforms/chips-input.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/codemods/src/transforms/__tests__/__snapshots__/chips-input.ts.snap b/packages/codemods/src/transforms/__tests__/__snapshots__/chips-input.ts.snap index 23c34a5787..125eb2b3da 100644 --- a/packages/codemods/src/transforms/__tests__/__snapshots__/chips-input.ts.snap +++ b/packages/codemods/src/transforms/__tests__/__snapshots__/chips-input.ts.snap @@ -7,7 +7,7 @@ import React from 'react'; const App = () => { return ( - + Чип diff --git a/packages/codemods/src/transforms/chips-input.ts b/packages/codemods/src/transforms/chips-input.ts index 9a4f54bcf2..f5a971bef4 100644 --- a/packages/codemods/src/transforms/chips-input.ts +++ b/packages/codemods/src/transforms/chips-input.ts @@ -5,7 +5,7 @@ import { JSCodeShiftOptions } from '../types'; export const parser = 'tsx'; const RENAME_MAP = { - inputAriaLabel: 'inputLabel', + inputAriaLabel: 'placeholder', }; export default function transformer(file: FileInfo, api: API, options: JSCodeShiftOptions) {