Skip to content

Commit

Permalink
Fix history
Browse files Browse the repository at this point in the history
  • Loading branch information
SawyerHood committed Aug 12, 2024
1 parent 4b5e68d commit a4d2ed7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Binary file modified bun.lockb
Binary file not shown.
5 changes: 0 additions & 5 deletions components/WindowBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -27,10 +26,6 @@ export function WindowBody({ state }: { state: WindowState }) {
case "settings":
return <Settings id={state.id} />;
case "history":
alert({
message: "history",
icon: "x",
});
return <History id={state.program.programID} />;
case "alert":
return <Alert id={state.id} />;
Expand Down
8 changes: 8 additions & 0 deletions components/WindowMenuBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ export function WindowMenuBar({ id }: { id: string }) {
type: "history",
programID,
},
pos: {
x: 0,
y: 0,
},
size: {
width: 300,
height: 300,
},
});
},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit a4d2ed7

Please sign in to comment.