Преглед изворни кода

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 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,


Loading…
Откажи
Сачувај