Skip to content

Commit

Permalink
feat: add <Upload> component stub
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Feb 17, 2018
1 parent 7f08b91 commit ebccc96
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const MyComponent = mock();
- [`<LocationSensor>`](./docs/en/LocationSensor.md), [`withLocation()`](./docs/en/LocationSensor.md#withlocation-hoc), and [`@withLocation`](./docs/en/LocationSensor.md#withlocation-decora)
- [`<OrientationSensor>`](./docs/en/OrientationSensor.md), [`withOrientation()`](./docs/en/OrientationSensor.md#withorientation-hoc), and [`@withOrientation`](./docs/en/OrientationSensor.md#withorientation-decorator)
- [`<ScrollSensor>`](./docs/en/ScrollSensor.md)
- [`<SizeSensor>`](./docs/en/SizeSensor.md), [`withSize()`](./docs/en/SizeSensor.md#withsize-hoc), and [`@withSize`](./docs/en/SizeSensor.md#withsize-decorator)
- [`<SizeSensor>`](./docs/en/SizeSensor.md), [`withSize()`](./docs/en/SizeSensor.md#withsize-hoc), and [`@withSize`](./docs/en/SizeSensor.md#withsize-decorator) ([demo](https://codesandbox.io/s/0y2qjm210p))
- [`<WidthSensor>`](./docs/en/WidthSensor.md), [`withWidth()`](./docs/en/WidthSensor.md#withwidth-hoc-and-withwidth-decorator), and [`@withWidth`](./docs/en/WidthSensor.md#withwidth-hoc-and-withwidth-decorator)
- [`<ViewportSensor>`](./docs/en/ViewportSensor.md), [`withViewport()`](./docs/en/ViewportSensor.md#withviewport-hoc), and [`@withViewport`](./docs/en/ViewportSensor.md#withviewport-decorator)
- [`<ViewportScrollSensor>`](./docs/en/ViewportSensor.md#viewportscrollsensor) and [`<ViewportObserverSensor>`](./docs/en/ViewportSensor.md#viewportobserversensor)
Expand Down
16 changes: 16 additions & 0 deletions src/Upload/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import {Component} from 'react';

export interface IUploadProps {
}

export interface IUploadState {
}

export class Upload extends Component<IUploadProps, IUploadState> {
onDragOver = (event) => event.preventDefault();
onDragEnter = (event) => event.preventDefault();

onDrop = (event) => {
event.preventDefault();
};
}

0 comments on commit ebccc96

Please sign in to comment.