瀏覽代碼

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
TheoryOfNekomata 4 年之前
父節點
當前提交
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 Enzyme from 'enzyme'
import * as React from 'react' import * as React from 'react'
import * as FeatherIcon from 'react-feather' import * as FeatherIcon from 'react-feather'
import { paramCase } from 'param-case' import paramCase from 'param-case'
import Icon from './Icon' import Icon from './Icon'


const FEATHER_ICONS = Object.keys(FeatherIcon).map((k) => paramCase(k)) 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> </SizingWrapper>
<Base <Base
{...etcProps} {...etcProps}
orientation={orientation!}
disabled={disabled!} disabled={disabled!}
style={{ style={{
[parallelDimension]: length, [parallelDimension]: length,


||||||
x
 
000:0
Loading…
取消
儲存