Skip to content

Commit 8037f6b

Browse files
author
Gitlab-CI
committed
fix(grayscale): fix GrayScale
1 parent dc515cf commit 8037f6b

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed
File renamed without changes.

src/filters/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export { default as Blur } from './Blur';
22
export { default as Brightness } from './Brightness';
33
export { default as Contrast } from './Contrast';
44
export { default as DropShadow } from './DropShadow';
5-
export { default as Grayscale } from './Grayscale';
5+
export { default as GrayScale } from './GrayScale';
66
export { default as HueRotate } from './HueRotate';
77
export { default as Invert } from './Invert';
88
export { default as Opacity } from './Opacity';
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
import React from 'react';
22
import { mount } from 'enzyme';
33
import { ThemeProvider } from 'styled-components';
4-
import Grayscale from '../Grayscale';
4+
import GrayScale from '../GrayScale';
55
import theme from '../../theme';
66

7-
const renderComponent = (EffectComponent = Grayscale, props = {}) => mount(
7+
const renderComponent = (EffectComponent = GrayScale, props = {}) => mount(
88
<ThemeProvider theme={theme}>
99
<EffectComponent {...props} />
1010
</ThemeProvider>
1111
);
1212

1313

14-
describe('Grayscale', () => {
14+
describe('GrayScale', () => {
1515
let children;
1616
beforeAll(() => {
1717
children = (<h1>Test</h1>);
1818
});
19-
it('should render Grayscale', () => {
20-
const renderedComponent = renderComponent(Grayscale, { children });
19+
it('should render GrayScale', () => {
20+
const renderedComponent = renderComponent(GrayScale, { children });
2121
expect(renderedComponent.length).toBe(1);
2222
});
2323
});

src/filters/tests/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React from 'react';
55
import { mount } from 'enzyme';
66
import { ThemeProvider } from 'styled-components';
77
import theme from '../../theme';
8-
import { Blur, Contrast, Brightness, Grayscale, HueRotate, Invert, Opacity, Saturate, Sepia, DropShadow } from '../index';
8+
import { Blur, Contrast, Brightness, GrayScale, HueRotate, Invert, Opacity, Saturate, Sepia, DropShadow } from '../index';
99

1010
const renderComponent = (EffectComponent = Blur, props = {}) => mount(
1111
<ThemeProvider theme={theme}>
@@ -37,8 +37,8 @@ describe('filters', () => {
3737
});
3838
expect(renderedComponent.length).toBe(1);
3939
});
40-
it('should render a <Grayscale> tag', () => {
41-
const renderedComponent = renderComponent(Grayscale, {
40+
it('should render a <GrayScale> tag', () => {
41+
const renderedComponent = renderComponent(GrayScale, {
4242
children,
4343
});
4444
expect(renderedComponent.length).toBe(1);

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { Blur, Contrast, Brightness, Grayscale, HueRotate, Invert, Opacity, Sepia, Saturate, DropShadow } from './filters/index';
1+
export { Blur, Contrast, Brightness, GrayScale, HueRotate, Invert, Opacity, Sepia, Saturate, DropShadow } from './filters/index';
22
export { Bounce, BounceDown, BounceUp, BounceLeft, BounceRight } from './bounce';
33
export { FadeIn, FadeInDown, FadeInUp, FadeInLeft, FadeInRight } from './fade/index';
44
export { Flip, FlipX, FlipY } from './flip';

styleguide/components/AnimationPanel/settings/animations.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
Blur,
33
Brightness,
44
Contrast,
5-
Grayscale,
5+
GrayScale,
66
HueRotate,
77
Invert,
88
Opacity,
@@ -204,9 +204,9 @@ export default {
204204
name: 'Contrast',
205205
tag: Contrast,
206206
},
207-
grayscale: {
208-
name: 'Grayscale',
209-
tag: Grayscale,
207+
grayScale: {
208+
name: 'GrayScale',
209+
tag: GrayScale,
210210
},
211211
hueRotate: {
212212
name: 'HueRotate',

0 commit comments

Comments
 (0)