Skip to content

Commit 4f91f47

Browse files
committed
chore: @xram review fixes
1 parent f951e99 commit 4f91f47

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

docs/OrientationSensor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `<OrientationSensor>`
22

3-
Tracs screen orientation using [`orientationchange` event](https://developer.mozilla.org/en-US/docs/Web/Events/orientationchange).
3+
Tracks screen orientation using [`orientationchange` event](https://developer.mozilla.org/en-US/docs/Web/Events/orientationchange).
44

55
## Usage
66

docs/Prompt.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ Or use it as a FaCC
3333
- `show` - boolean, optional, whether to show the prompt modal.
3434
- `message` - string, optional, string message to display to the user.
3535
- `default` - string, optional, default text to pre-fill the user's response input.
36-
- `onResult` - function, optional, function that receives propt result string as a single argument.
36+
- `onResult` - function, optional, function that receives prompt result string as a single argument.

docs/ViewportSensor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ interface IViewportSensorProps {
3333

3434
- `threshold` - optional, number, percentage how much does your component have to intersect with viewport
3535
to be considered visible. Defaults to `0`.
36-
- `onChange` - optional, callback called when sensor changes it's state, receives the state of the sensor as
36+
- `onChange` - optional, callback called when sensor changes its state, receives the state of the sensor as
3737
a single argument.
3838

3939
## State

docs/getDisplayName.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ import getDisplayName from 'libreact/lib/util/getDisplayName';
88
const name = getDisplayName(MyComponent);
99
```
1010

11-
Accepts a single argument, which can be a statefull or stateless React component, or element. Returns a string.
11+
Accepts a single argument, which can be a stateful or stateless React component, or element. Returns a string.

src/ViewportObserverSensor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class ViewportObserverSensor extends Component<IViewportObserverSensorPro
3434
const {margin, threshold} = this.props;
3535

3636
this.mounted = true;
37-
console.log('MAR', margin.map((val) => val + 'px').join(' '));
37+
3838
this.observer = new IntersectionObserver(this.onObserve, {
3939
rootMargin: margin.map((val) => val + 'px').join(' '),
4040
threshold

src/ViewportScrollSensor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const intersect: TIntersect = (rect1, rect2) => {
3939
return [x5, y5, x6, y6];
4040
};
4141

42-
// Compute are of a NORMALIZED rectangle.
42+
// Compute area of a NORMALIZED rectangle.
4343
type TArea = (react: TRect) => number;
4444
const area: TArea = ([x1, y1, x2, y2]) => (x2 - x1) * (y2 - y1);
4545

0 commit comments

Comments
 (0)