Skip to content

Commit 93d5423

Browse files
committed
make straight apostrophes curly
1 parent d026517 commit 93d5423

17 files changed

+33
-33
lines changed

usehooks.com/src/components/search/HooksList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function HooksList({ hooks }) {
5656
imageHeight: "206",
5757
imageAlt: "20-sided die",
5858
pitch:
59-
"It's dangerous to go alone! Master React by learning how to build useHooks yourself.",
59+
"Its dangerous to go alone! Master React by learning how to build useHooks yourself.",
6060
},
6161
{
6262
id: "Callout 2",
@@ -65,7 +65,7 @@ export default function HooksList({ hooks }) {
6565
imageHeight: "180",
6666
imageAlt: "board game spinner and all options are React",
6767
pitch:
68-
"There's no better way to learn useHooks than by building it yourself.",
68+
"Theres no better way to learn useHooks than by building it yourself.",
6969
},
7070
{
7171
id: "Callout 3",

usehooks.com/src/content/hooks/useBattery.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: useBattery
33
rank: 32
4-
tagline: Track the battery status of a user's device with useBattery.
4+
tagline: Track the battery status of a users device with useBattery.
55
sandboxId: usebattery-o8js1p
66
previewHeight: 320px
77
relatedHooks:
@@ -15,7 +15,7 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1515

1616
<HookDescription name={frontmatter.name}>
1717
The useBattery hook is useful for accessing and monitoring the battery status
18-
of the user's device in a React application. By using this hook, you can
18+
of the users device in a React application. By using this hook, you can
1919
easily retrieve information such as the battery level, charging status, and
2020
estimated charging and discharging times. It provides a state object that
2121
includes properties like supported, loading, level, charging, chargingTime,
@@ -30,12 +30,12 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
3030
<div class="table-container">
3131
| Name | Type | Description |
3232
| ---------------- | ------- | ----------- |
33-
| supported | boolean | Indicates whether the Battery Status API is supported in the user's browser. |
33+
| supported | boolean | Indicates whether the Battery Status API is supported in the users browser. |
3434
| loading | boolean | Indicates if the battery information is still loading. |
35-
| level | number | Represents the level of the system's battery. 0.0 means that the system's battery is completely discharged, and 1.0 means the battery is completely charged. |
36-
| charging | boolean | Represents whether the system's battery is charging. `true` means the battery is charging, `false` means it's not. |
37-
| chargingTime | number | Represents the time remaining in seconds until the system's battery is fully charged. |
38-
| dischargingTime | number | Represents the time remaining in seconds until the system's battery is completely discharged and the system is about to be suspended. |
35+
| level | number | Represents the level of the systems battery. 0.0 means that the systems battery is completely discharged, and 1.0 means the battery is completely charged. |
36+
| charging | boolean | Represents whether the systems battery is charging. `true` means the battery is charging, `false` means its not. |
37+
| chargingTime | number | Represents the time remaining in seconds until the systems battery is fully charged. |
38+
| dischargingTime | number | Represents the time remaining in seconds until the systems battery is completely discharged and the system is about to be suspended. |
3939
</div>
4040
</div>
4141

usehooks.com/src/content/hooks/useClickAway.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1616
<HookDescription name={frontmatter.name}>
1717
The useClickAway hook is a useful for detecting clicks outside a specific
1818
component. It allows you to pass a callback function that will be triggered
19-
whenever a click occurs outside the component's area. This hook is
19+
whenever a click occurs outside the components area. This hook is
2020
particularly helpful when implementing dropdown menus, modals, or any other UI
2121
elements that need to be closed when the user clicks outside of them. By
2222
attaching event listeners to the document, the hook checks if the click target
23-
is within the component's reference, and if not, it invokes the provided
23+
is within the components reference, and if not, it invokes the provided
2424
callback function.
2525
</HookDescription>
2626

usehooks.com/src/content/hooks/useIntersectionObserver.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
2929
<div class="table-container">
3030
| Name | Type | Default | Description |
3131
| ---------- | ------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
32-
| threshold | number | 1 | Either a single number or an array of numbers between 0 and 1, indicating at what percentage of the target's visibility the observer's callback should be executed. |
32+
| threshold | number | 1 | Either a single number or an array of numbers between 0 and 1, indicating at what percentage of the targets visibility the observers callback should be executed. |
3333
| root | element | null | The Element that is used as the viewport for checking visibility of the target. Defaults to the browser viewport if not specified or if null. |
34-
| rootMargin | string | "0%" | Margin around the root. Can have values similar to the CSS margin property. The values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. Defaults to all zeros. |
34+
| rootMargin | string | "0%" | Margin around the root. Can have values similar to the CSS margin property. The values can be percentages. This set of values serves to grow or shrink each side of the root elements bounding box before computing intersections. Defaults to all zeros. |
3535
</div>
3636

3737
### Return Value

usehooks.com/src/content/hooks/useLocalStorage.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: useLocalStorage
33
experimental: true
44
rank: 2
5-
tagline: Store, retrieve, and synchronize data from the browser's localStorage API with useLocalStorage
5+
tagline: Store, retrieve, and synchronize data from the browsers localStorage API with useLocalStorage
66
sandboxId: uselocalstorage-e6v6ey
77
previewHeight: 670px
88
relatedHooks:
@@ -18,7 +18,7 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1818
a component with the data stored in local storage. It automatically reads the
1919
initial value from local storage when the component mounts and updates the
2020
local storage whenever the state changes. Additionally, it listens for changes
21-
in local storage made by other tabs or windows and keeps the component's state
21+
in local storage made by other tabs or windows and keeps the components state
2222
up to date.
2323
</HookDescription>
2424

usehooks.com/src/content/hooks/useLockBodyScroll.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1616
The useLockBodyScroll hook temporarily disables scrolling on the document
1717
body. This can be beneficial in scenarios where you want to restrict scrolling
1818
while displaying a modal, a dropdown menu, or any other component that
19-
requires the user's focus. Once the component using this hook is unmounted or
19+
requires the users focus. Once the component using this hook is unmounted or
2020
no longer needed, the hook returns a cleanup function that restores the
2121
original overflow style, ensuring that the scroll behavior is reverted to its
2222
previous state.

usehooks.com/src/content/hooks/useLogger.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1919
and it logs the lifecycle events (mounted, updated, and unmounted) along with
2020
the provided name and arguments. This useLogger hook can be employed to
2121
facilitate debugging, monitoring, or performance optimization by providing
22-
insights into when and how a component's lifecycle events occur.
22+
insights into when and how a components lifecycle events occur.
2323
</HookDescription>
2424

2525
<div class="reference">

usehooks.com/src/content/hooks/useMap.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1515

1616
<HookDescription name={frontmatter.name}>
1717
The useMap hook provides a wrapper around the JavaScript Map object and allows
18-
you to easily update and synchronize the map state with the component's
18+
you to easily update and synchronize the map state with the components
1919
rendering. By using this hook, you can add, delete, or clear entries in the
2020
map while ensuring that the component re-renders whenever these operations are
2121
performed.

usehooks.com/src/content/hooks/useMeasure.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: useMeasure
33
rank: 46
4-
tagline: Effortlessly measure and track your component's dimensions with useMeasure.
4+
tagline: Effortlessly measure and track your components dimensions with useMeasure.
55
sandboxId: usemeasure-3kyegb
66
previewHeight: 300px
77
relatedHooks:
@@ -15,7 +15,7 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1515
<HookDescription name={frontmatter.name}>
1616
The useMeasure hook provides a convenient and efficient way to monitor and
1717
respond to changes in the size of a React component. This custom hook uses the
18-
ResizeObserver API to actively track changes in the component's dimensions,
18+
ResizeObserver API to actively track changes in the components dimensions,
1919
such as width and height, and keeps them available as state. The returned ref
2020
is used on the element whose dimensions you want to measure, making it a
2121
valuable tool for responsive design and dynamic layout adjustments.

usehooks.com/src/content/hooks/useMediaQuery.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import StaticCodeContainer from "../../components/StaticCodeContainer.astro";
1717
The useMediaQuery hook leverages the window.matchMedia API to subscribe to CSS
1818
media query changes, thereby providing real-time responsiveness to dynamic
1919
changes in the viewport or screen orientation. It allows the component to
20-
rerender whenever the media query's result changes. It throws an error if
20+
rerender whenever the media querys result changes. It throws an error if
2121
attempted to be used on the server-side (media queries only work in the
2222
browser).
2323
</HookDescription>

0 commit comments

Comments
 (0)