Skip to content

Commit adecd64

Browse files
committed
husky setup
1 parent 81c2899 commit adecd64

File tree

8 files changed

+24
-6
lines changed

8 files changed

+24
-6
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run build

.husky/pre-push

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
git pull

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8" />
5-
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
5+
<link rel="icon" type="image/svg+xml" href="/logo.png" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>TypeSight</title>
88
</head>

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "tsc && vite build",
99
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1010
"preview": "vite preview",
11-
"test": "jest"
11+
"test": "jest",
12+
"prepare": "husky"
1213
},
1314
"dependencies": {
1415
"@radix-ui/react-dropdown-menu": "^2.0.6",
@@ -37,6 +38,7 @@
3738
"eslint": "^8.45.0",
3839
"eslint-plugin-react-hooks": "^4.6.0",
3940
"eslint-plugin-react-refresh": "^0.4.3",
41+
"husky": "^9.0.11",
4042
"jest": "^29.6.2",
4143
"postcss": "^8.4.27",
4244
"tailwindcss": "^3.3.3",

public/logo.png

167 KB
Loading

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/Navbar.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import FlagIcon from "../icons/Flagicon";
21
import React from "react";
32
import { Button } from "./ui/button";
43
import { ModeToggle } from "./ui/toggle-theme";
@@ -15,11 +14,11 @@ const routes = [
1514
{ name: "About", path: "#about", id: 2 },
1615
{ name: "Contact", path: "#contact", id: 3 },
1716
];
18-
const Navbar = () => {
17+
const Navbar:React.FC = () => {
1918
return (
2019
<nav className="flex justify-between items-center py-4 px-8 border-b">
2120
<div className="flex items-center space-x-4">
22-
<FlagIcon className="text-blue-600 h-6 w-6" />
21+
<img src="/logo.png" alt="Typesight Logo" className="h-10 w-10" />
2322
<span className="font-bold text-xl">TYPESIGHT</span>
2423
</div>
2524
<div className="flex items-center space-x-6">

0 commit comments

Comments
 (0)