Skip to content

Commit

Permalink
codemode(chips-input): mv inputAriaLabel to placeholder (#6406)
Browse files Browse the repository at this point in the history
После #6367 `inputLabel` (a.k.a `inputAriaLabel`) был удалён. Вместо него нужно использовать либо `placeholder`, либо оборачивать в `FormItem`.
  • Loading branch information
inomdzhon authored Jan 18, 2024
1 parent 6fe1791 commit 8d00bf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react';
const App = () => {
return (
<React.Fragment>
<ChipsInput id="color" value={colors} inputLabel="Введите название цвета">
<ChipsInput id="color" value={colors} placeholder="Введите название цвета">
Чип
</ChipsInput>
</React.Fragment>
Expand Down
2 changes: 1 addition & 1 deletion packages/codemods/src/transforms/chips-input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8d00bf8

Please sign in to comment.