Skip to content

Commit

Permalink
fix: restore workspaces (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
j4k0xb committed Jun 8, 2024
1 parent f6df5f2 commit 4674329
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/playground/src/components/menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ export default function Menu(props: Props) {
<MenuDropdown title="Open Recent">
<For each={workspaces()} fallback={<li>No recent files</li>}>
{(workspace) => (
<MenuButton class="whitespace-nowrap">
<MenuButton
class="whitespace-nowrap"
onClick={() => props.onRestore?.(workspace)}
>
{new Date(workspace.timestamp).toLocaleString()} -
<code class="overflow-x-clip overflow-ellipsis max-w-36">
{workspace.models[0].value.slice(0, 50)}
Expand Down

0 comments on commit 4674329

Please sign in to comment.