refactor: replace FolderOpen icon with FolderClock in DocumentsSidebar and update button text in FolderWatchDialog

This commit is contained in:
Anish Sarkar 2026-04-08 04:12:54 +05:30
parent 078f735e3a
commit 3832bdbb91
2 changed files with 3 additions and 4 deletions

View file

@ -2,7 +2,7 @@
import { useQuery } from "@rocicorp/zero/react";
import { useAtom, useAtomValue, useSetAtom } from "jotai";
import { ChevronLeft, ChevronRight, FolderOpen, Trash2, Unplug } from "lucide-react";
import { ChevronLeft, ChevronRight, FolderClock, Trash2, Unplug } from "lucide-react";
import { useParams } from "next/navigation";
import { useTranslations } from "next-intl";
import { useCallback, useEffect, useMemo, useState } from "react";
@ -757,7 +757,7 @@ export function DocumentsSidebar({
onClick={() => setFolderWatchOpen(true)}
className="shrink-0 mx-4 mb-4 flex select-none items-center gap-2 rounded-lg border bg-muted/50 px-3 py-2 transition-colors hover:bg-muted/80"
>
<FolderOpen className="size-4 shrink-0 text-muted-foreground" />
<FolderClock className="size-4 shrink-0 text-muted-foreground" />
<span className="truncate text-xs text-muted-foreground">Watch local folder</span>
</button>
)}