Skip to content

Commit

Permalink
fix: wrong path for hooks in the usage section (#29)
Browse files Browse the repository at this point in the history
Co-authored-by: Ala <[email protected]>
  • Loading branch information
alamenai and Ala authored Sep 7, 2024
1 parent 69d771f commit 652e38a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pages/hooks/use-battery.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const useBattery = (): BatteryManager | undefined => {
```tsx {3,6} copy

import React, { useEffect, useState } from 'react';
import { useBattery } from './useBattery';
import { useBattery } from './hooks/use-battery';

function App() {
const battery = useBattery();
Expand Down
2 changes: 1 addition & 1 deletion pages/hooks/use-cookie.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const getCookie = (name: string, initialValue = '') => {
```tsx {3,6} copy

import React from 'react';
import { useCookie } from './use-cookie';
import { useCookie } from './hooks/use-cookie';

function App() {
const [userToken, setUserToken] = useCookie('token', '');
Expand Down
2 changes: 1 addition & 1 deletion pages/hooks/use-fetch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export const useFetch: UseFetch = <T = unknown>(
```tsx {3,11}

import React, { useEffect, useState } from 'react';
import { useFetch } from './useFetch';
import { useFetch } from './hooks/use-fetch';

type Product = {
id: string
Expand Down
2 changes: 1 addition & 1 deletion pages/hooks/use-media-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const useMediaQuery = (type: MediaQuery) => {
```tsx {6} copy

import React from 'react';
import { useMediaQuery } from './useMediaQuery';
import { useMediaQuery } from './hooks/use-media-query';

function App() {
const { mediaWidth, resize } = useMediaQuery('md');
Expand Down
2 changes: 1 addition & 1 deletion pages/hooks/use-mouse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const useMouse = (eventType: 'mousemove' | 'mouseenter' | 'click', callba
```tsx {3,6} copy

import React from 'react';
import { useMouse } from './useMouse';
import { useMouse } from './hooks/use-mouse';

function App() {
const mousePosition = useMouse('mousemove');
Expand Down
2 changes: 1 addition & 1 deletion pages/hooks/use-session.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const getCurrentSession = () => {
```tsx {3,7,8,9,10,11,12,13,14,15,16,17} copy

import React from 'react';
import { useSession } from './useSession';
import { useSession } from './hooks/use-session';

function App() {
const {
Expand Down
2 changes: 1 addition & 1 deletion pages/hooks/use-timeout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const useTimeout = (t: number, fn?: () => void) => {
```tsx {13} copy

import React, { useState } from 'react';
import { useTimeout } from './useTimeout';
import { useTimeout } from './hooks/use-timeout';

function App() {
const [count, setCount] = useState(0);
Expand Down
2 changes: 1 addition & 1 deletion pages/hooks/use-url.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useUrl = (fn?: () => void) => {
```tsx {3,6}

import React, { useEffect, useState } from 'react';
import { useUrl } from './useUrl';
import { useUrl } from './hooks/use-url';

function App() {
const { url, getRootPath, getQueryParams, getPort } = useUrl();
Expand Down

0 comments on commit 652e38a

Please sign in to comment.