fix: transcriptions history remounting of search box

This commit is contained in:
haritabh-z01 2025-09-11 22:41:28 +05:30
parent ec3ce44c40
commit 93496a2bde
7 changed files with 24 additions and 39 deletions

View file

@ -420,14 +420,14 @@ export default function Note({
</PopoverContent>
</Popover> */}
<Tooltip>
{/* <Tooltip>
<TooltipTrigger asChild>
<Button variant="ghost" size="sm" disabled>
<Mic className="h-4 w-4" />
</Button>
</TooltipTrigger>
<TooltipContent>Transcription coming soon</TooltipContent>
</Tooltip>
</Tooltip> */}
{/* More actions dropdown */}
<DropdownMenu>

View file

@ -323,7 +323,6 @@ export default function HistorySettingsPage() {
});
const transcriptions = transcriptionsQuery.data || [];
const loading = transcriptionsQuery.isLoading;
function handleCopy(text: string) {
navigator.clipboard.writeText(text);
@ -351,30 +350,6 @@ export default function HistorySettingsPage() {
const groupedHistory = groupHistoryByDate(transcriptions);
// Loading state
if (loading) {
return (
<div className="container mx-auto p-6 max-w-5xl">
<div className="mb-8">
<h1 className="text-xl font-bold">History</h1>
<p className="text-muted-foreground mt-1 text-sm">
Your recent transcription history
</p>
</div>
<Card>
<CardContent className="py-12">
<div className="flex flex-col items-center space-y-2 text-center">
<div className="h-8 w-8 animate-spin rounded-full border-4 border-gray-300 border-t-blue-600"></div>
<p className="text-sm text-muted-foreground">
Loading transcription history...
</p>
</div>
</CardContent>
</Card>
</div>
);
}
return (
<div className="container mx-auto p-6 max-w-5xl">
{/* Header Section */}