UNPKG

@yandex/ui

Version:

Yandex UI components

17 lines (14 loc) 534 B
import { removeProps } from './utils/removeProps'; import { removeImport } from './utils/removeImport'; import { removeUsage } from './utils/removeUsage'; function removeWidthFixed(root, j) { removeImport(root, j, '@yandex-lego/components/Select', 'withWidthFixed'); removeUsage(root, j, 'withWidthFixed'); removeProps(root, j, 'width', 'fixed', 'Select'); } module.exports = (fileInfo, { jscodeshift: j }) => { const root = j(fileInfo.source); removeWidthFixed(root, j); return root .toSource(); };