From a4d2ed7bad55a7453939b76803a8b799eec6d0e3 Mon Sep 17 00:00:00 2001 From: Sawyer Hood Date: Mon, 12 Aug 2024 15:18:22 -0700 Subject: [PATCH] Fix history --- bun.lockb | Bin 338285 -> 338285 bytes components/WindowBody.tsx | 5 ----- components/WindowMenuBar.tsx | 8 ++++++++ package.json | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/bun.lockb b/bun.lockb index 47ffdfebc58408c43d970c6462e6450a46dc2ec6..e9084209e999d7da791d4331e1adb2746c60fc0d 100755 GIT binary patch delta 173 zcmV;e08;<$(iH8|6p$_;ArB*ZT{9K2z}qJ}q8O6nyh_{zQdk*2r8pB8u}&6f zlVpB0gP3Tym}miA7C?-ER}rU994z8G;~400GT5XX9x6tLdm9()aH<~*a%VIBhoaI4 zLA7pXIfqJ_v@sf~FMjpR-w)^>(so$Uk`{+Ge*w2Oe*#?T2LfzibY*jNmzZb+;|Bp= bG%heMG`E6j1F`x6IhTLd*49h~Qa;spbBz)hToG+Su=0?(u=5$;J&(rdu}&6f zljQX@gP3Tym}miA7C_09ObdR6bhD(e>int(w8*#h;%I^%u9WF{T;^ENsPN?_7%E#vHS&iwe*w2Oe*#?T2LWC(E;ueQmzZb+;|Br& b000000Jnl^1F`x6IG1rT1R=LoWCR$+mt{>b diff --git a/components/WindowBody.tsx b/components/WindowBody.tsx index 61cd4a3..7bca1fc 100644 --- a/components/WindowBody.tsx +++ b/components/WindowBody.tsx @@ -10,7 +10,6 @@ import { Explorer } from "./programs/Explorer"; import { Settings } from "./programs/Settings"; import { History } from "./programs/History"; import { Alert } from "./programs/Alert"; -import { alert } from "@/lib/alert"; export function WindowBody({ state }: { state: WindowState }) { switch (state.program.type) { @@ -27,10 +26,6 @@ export function WindowBody({ state }: { state: WindowState }) { case "settings": return ; case "history": - alert({ - message: "history", - icon: "x", - }); return ; case "alert": return ; diff --git a/components/WindowMenuBar.tsx b/components/WindowMenuBar.tsx index 0a1ddd8..018306d 100644 --- a/components/WindowMenuBar.tsx +++ b/components/WindowMenuBar.tsx @@ -114,6 +114,14 @@ export function WindowMenuBar({ id }: { id: string }) { type: "history", programID, }, + pos: { + x: 0, + y: 0, + }, + size: { + width: 300, + height: 300, + }, }); }, }, diff --git a/package.json b/package.json index c8f27c8..f467a12 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "fs-extra": "^11.2.0", "idb": "^8.0.0", "immer": "^10.1.1", - "jotai": "^2.8.0", + "jotai": "^2.9.2", "next": "^14.2.4", "openai": "^4.41.1", "openai-html-stream": "^1.0.0",