Skip to content

Commit

Permalink
Fix spelling typos (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwr1 authored Dec 13, 2021
1 parent dfa8d69 commit 6506b57
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
To learn how to get started with **dnd kit**, visit the official documentation website. You'll find in-depth API documentation, tips and guides to help you build drag and drop interfaces.
<p>
<a href="https://docs.dndkit.com">
<img alt="View documntation" src=".github/assets/documentation.svg" width="200" />
<img alt="View documentation" src=".github/assets/documentation.svg" width="200" />
</a>
</p>
<p align="center">
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/hooks/utilities/useAutoScroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,15 +114,15 @@ export function useAutoScroller({
}

const index = scrollableAncestors.indexOf(scrollContainer);
const scrolllContainerRect = scrollableAncestorRects[index];
const scrollContainerRect = scrollableAncestorRects[index];

if (!scrolllContainerRect) {
if (!scrollContainerRect) {
continue;
}

const {direction, speed} = getScrollDirectionAndSpeed(
scrollContainer,
scrolllContainerRect,
scrollContainerRect,
rect,
acceleration,
threshold
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/hooks/utilities/useSensorSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useSensorSetup(sensors: SensorDescriptor<any>[]) {
}
};
},
// TO-DO: Sensors lenght could theoretically change which would not be a valid dependency
// TO-DO: Sensors length could theoretically change which would not be a valid dependency
// eslint-disable-next-line react-hooks/exhaustive-deps
sensors.map(({sensor}) => sensor)
);
Expand Down
2 changes: 1 addition & 1 deletion packages/sortable/src/components/SortableContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function SortableContext({

useIsomorphicLayoutEffect(() => {
if (itemsHaveChanged && isSorting && !willRecomputeLayouts) {
// To-do: Add partial recompution of only subset of rects
// To-do: Add partial recomputation of only subset of rects
recomputeLayouts();
}
}, [itemsHaveChanged, isSorting, recomputeLayouts, willRecomputeLayouts]);
Expand Down
2 changes: 1 addition & 1 deletion playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<style>
body {
font-family: sans-serif;
-webkit-font-smooothing: antialiased;
-webkit-font-smoothing: antialiased;
}
</style>
<body>
Expand Down
8 changes: 4 additions & 4 deletions stories/2 - Presets/Sortable/MultipleContainers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export function MultipleContainers({
const onDragCancel = () => {
if (clonedItems) {
// Reset items to their original state in case items have been
// Dragged across containrs
// Dragged across containers
setItems(clonedItems);
}

Expand Down Expand Up @@ -570,10 +570,10 @@ export function MultipleContainers({
}

function getNextContainerId() {
const containeIds = Object.keys(items);
const lastContaineId = containeIds[containeIds.length - 1];
const containerIds = Object.keys(items);
const lastContainerId = containerIds[containerIds.length - 1];

return String.fromCharCode(lastContaineId.charCodeAt(0) + 1);
return String.fromCharCode(lastContainerId.charCodeAt(0) + 1);
}
}

Expand Down

0 comments on commit 6506b57

Please sign in to comment.