Skip to content

Commit

Permalink
fix : ts 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kagrin97 committed Apr 25, 2023
1 parent 36a29eb commit 1af72bb
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 115 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run build
2 changes: 1 addition & 1 deletion components/Layout/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function Container({
<HeaderNav />
</header>
<div className={`flex w-full max-w-5xl mt-10`}>
{widthSize >= 800 && (
{widthSize && widthSize >= 800 && (
<aside className={`w-1/5 min-h-screen`}>
<SideNav />
</aside>
Expand Down
2 changes: 1 addition & 1 deletion components/Layout/HeaderNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function HeaderNav() {
</Link>
</div>

{!Boolean(widthSize >= 800) && (
{widthSize && !Boolean(widthSize >= 800) && (
<button
className="menu-btn hover:text-green-400"
onClick={openDrawerHandler}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"postbuild": "next-sitemap --config next-sitemap.config.js",
"start": "next start",
"lint": "next lint",
"devs": "next dev -H ::"
"devs": "next dev -H ::",
"prepare": "husky install"
},
"dependencies": {
"axios": "^1.3.4",
Expand Down
107 changes: 0 additions & 107 deletions public/sitemap-0.xml

This file was deleted.

4 changes: 0 additions & 4 deletions public/sitemap.xml

This file was deleted.

2 changes: 1 addition & 1 deletion public/sw.js.map

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

1 change: 1 addition & 0 deletions public/workbox-588899ac.js

Large diffs are not rendered by default.

0 comments on commit 1af72bb

Please sign in to comment.