) => {
if (animationFrameRef.current) {
cancelAnimationFrame(animationFrameRef.current);
}
animationFrameRef.current = requestAnimationFrame(() => {
- const halfWidth = event.target.offsetWidth / 2;
+ const target = event.target as HTMLElement;
+ const halfWidth = target.offsetWidth / 2;
x.set(event.nativeEvent.offsetX - halfWidth);
});
};
return (
<>
- {items.map((item, idx) => (
+ {items.map((item) => (
{
return (
diff --git a/src/config/navigation.ts b/src/config/navigation.ts
index 193fb0c..5fdc306 100644
--- a/src/config/navigation.ts
+++ b/src/config/navigation.ts
@@ -1,5 +1,3 @@
-import { MessageCircle } from "lucide-react";
-
export interface NavItem {
label: string;
href: string;
@@ -29,6 +27,5 @@ export const navigationItems: Array = [
label: "Community",
href: "https://discord.gg/invite",
external: true,
- icon: ,
},
];
diff --git a/wrangler.jsonc b/wrangler.jsonc
index f08f05c..0a4f7bd 100644
--- a/wrangler.jsonc
+++ b/wrangler.jsonc
@@ -21,6 +21,8 @@
"zone_name": "biohazardvfx.com"
}
],
+ "workers_dev": true,
+ "preview_urls": true,
"observability": {
"enabled": true
}