Skip to content

Commit

Permalink
refactor: use usehooks-ts lib
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Mar 13, 2024
1 parent 783e25d commit 75f6b12
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 30 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ Keyboard shortcuts can be triggered when no input field is selected.
- [use-undo](https://github.com/homerchen19/use-undo)
- [immer](https://github.com/immerjs/immer)
- [use-immer](https://github.com/immerjs/use-immer)
- [usehooks-ts](https://github.com/juliencrn/usehooks-ts)

## Hosted On

Expand Down
17 changes: 16 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
"react-router-dom": "6.20.1",
"recharts": "2.12.0",
"use-immer": "0.9.0",
"use-undo": "1.1.1"
"use-undo": "1.1.1",
"usehooks-ts": "3.0.1"
},
"devDependencies": {
"@playwright/test": "1.41.2",
Expand Down
14 changes: 13 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/LandingPage/LandingPage.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useRef } from "react";
import { Button, Container, Form, Row, Stack } from "react-bootstrap";
import { useWindowSize } from "usehooks-ts";
import { useBudget } from "../../context/BudgetContext";
import { useGeneralContext } from "../../context/GeneralContext";
import { useDB } from "../../hooks/useDB";
import { useWindowSize } from "../../hooks/useWindowSize";
import { Loading } from "../Loading/Loading";
import "./LandingPage.css";

Expand Down
26 changes: 0 additions & 26 deletions src/hooks/useWindowSize.ts

This file was deleted.

0 comments on commit 75f6b12

Please sign in to comment.