Skip to content

Commit 909787f

Browse files
committedJun 25, 2018
Shaddow -> Shadow
1 parent c2096fd commit 909787f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed
 

‎README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ import ScrollShadow from 'react-scroll-shadow';
5151
# Api 📚
5252

5353
```ts
54-
interface ShaddowColors {
54+
interface ShadowColors {
5555
inactive: string;
5656
active: string;
5757
}
5858

5959
interface Props {
6060
height?: string;
61-
bottomShadowColors?: ShaddowColors;
62-
topShadowColors?: ShaddowColors;
61+
bottomShadowColors?: ShadowColors;
62+
topShadowColors?: ShadowColors;
6363
shadowSize?: number;
6464
}
6565
```

‎example/app.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import * as React from 'react';
22
import {Component, ReactNode, ChangeEvent} from 'react';
33
import GHCorner from 'react-gh-corner';
4-
import ScrollShadow, { ShaddowColors } from '../src';
4+
import ScrollShadow, { ShadowColors } from '../src';
55
import {ShadowSize, Title, ScrollWrapper, Item, AppWrapper, AppHeader, AppFooter, ColorWrapper, ColorsWrapper} from './styled';
66

77
interface AppProps {
88

99
}
1010

1111
interface ShadowPosition {
12-
bottomShadowColors: ShaddowColors;
13-
topShadowColors: ShaddowColors;
12+
bottomShadowColors: ShadowColors;
13+
topShadowColors: ShadowColors;
1414
}
1515

1616
type AppState = ShadowPosition & {
@@ -38,9 +38,9 @@ export default class App extends Component<AppProps, AppState> {
3838
shadowSize: 2
3939
};
4040

41-
onColorChange = (position: keyof ShadowPosition, property: keyof ShaddowColors) => (e: ChangeEvent<HTMLInputElement>) => {
41+
onColorChange = (position: keyof ShadowPosition, property: keyof ShadowColors) => (e: ChangeEvent<HTMLInputElement>) => {
4242
const color = e.target.value;
43-
const shadowColors: ShaddowColors = {
43+
const shadowColors: ShadowColors = {
4444
...this.state[position],
4545
[property]: color
4646
};

‎src/scroll-shadow.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import * as React from 'react';
22
import {Component} from 'react';
33
import {ScrollableContent, ScrollableWrapper} from './styled';
44

5-
export interface ShaddowColors {
5+
export interface ShadowColors {
66
inactive: string;
77
active: string;
88
}
99

1010
export interface ScrollShadowProps {
1111
height?: string;
12-
bottomShadowColors?: ShaddowColors;
13-
topShadowColors?: ShaddowColors;
12+
bottomShadowColors?: ShadowColors;
13+
topShadowColors?: ShadowColors;
1414
shadowSize?: number;
1515
}
1616

0 commit comments

Comments
 (0)
Please sign in to comment.