浏览代码

Fix extraneous props

Remove props from Slider that has something to do with incorrectly setting `orientation` to a `div`-like element.

Also, we fix the import in the Icon test.
tags/0.3.0
父节点
当前提交
e1a19f117b
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -1
      lib/components/Icon/Icon.test.tsx
  2. +0
    -1
      lib/components/Slider/Slider.tsx

+ 1
- 1
lib/components/Icon/Icon.test.tsx 查看文件

@@ -2,7 +2,7 @@ import * as fc from 'fast-check'
import * as Enzyme from 'enzyme'
import * as React from 'react'
import * as FeatherIcon from 'react-feather'
import { paramCase } from 'param-case'
import paramCase from 'param-case'
import Icon from './Icon'

const FEATHER_ICONS = Object.keys(FeatherIcon).map((k) => paramCase(k))


+ 0
- 1
lib/components/Slider/Slider.tsx 查看文件

@@ -289,7 +289,6 @@ const Slider: React.FC<Props> = ({
</SizingWrapper>
<Base
{...etcProps}
orientation={orientation!}
disabled={disabled!}
style={{
[parallelDimension]: length,


正在加载...
取消
保存