Skip to content

Commit dcbd7f9

Browse files
committed
WIP
1 parent e64e776 commit dcbd7f9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/ui/History.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// src/ui/History.tsx
2-
import { Box, Static } from "ink";
2+
import { Box } from "ink";
33
import React from "react";
44
import { useStore } from "@/agent/state.js";
55
import { HistoryItemDisplay } from "./HistoryItemDisplay.js";
@@ -9,13 +9,11 @@ export function History() {
99

1010
return (
1111
<Box flexDirection="column" flexGrow={1} paddingX={1}>
12-
<Static items={history}>
13-
{(message) => (
14-
<Box key={message.id}>
15-
<HistoryItemDisplay message={message} />
16-
</Box>
17-
)}
18-
</Static>
12+
{history.map((message) => (
13+
<Box key={message.id}>
14+
<HistoryItemDisplay message={message} />
15+
</Box>
16+
))}
1917
</Box>
2018
);
2119
}

0 commit comments

Comments
 (0)