Quellcode durchsuchen

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 vor 4 Jahren
Ursprung
Commit
e1a19f117b
2 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  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 Datei anzeigen

@@ -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 Datei anzeigen

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


Laden…
Abbrechen
Speichern