mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-07-11 00:33:40 +00:00
refactor(Prompts): update class names for AutoSendPrompt and change dialog header to footer in MCPServerDialog
This commit is contained in:
parent
cda9e77383
commit
1acaed2838
3 changed files with 7 additions and 6 deletions
|
|
@ -25,7 +25,7 @@ export default function AutoSendPrompt({
|
|||
onClick={() => handleCheckedChange(!autoSendPrompts)}
|
||||
aria-label={localize('com_nav_auto_send_prompts')}
|
||||
aria-pressed={autoSendPrompts}
|
||||
className={autoSendPrompts ? 'hover:bg-suface-hover bg-surface-hover' : ''}
|
||||
className={autoSendPrompts ? 'bg-surface-hover hover:bg-surface-hover' : ''}
|
||||
>
|
||||
<Checkbox
|
||||
checked={autoSendPrompts}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ import {
|
|||
OGDialog,
|
||||
OGDialogTitle,
|
||||
OGDialogHeader,
|
||||
OGDialogFooter,
|
||||
OGDialogContent,
|
||||
OGDialogTemplate,
|
||||
} from '@librechat/client';
|
||||
|
|
@ -166,7 +167,7 @@ export default function MCPServerDialog({
|
|||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<OGDialogHeader>
|
||||
<OGDialogFooter>
|
||||
<Button
|
||||
variant="default"
|
||||
onClick={() => {
|
||||
|
|
@ -177,7 +178,7 @@ export default function MCPServerDialog({
|
|||
>
|
||||
{localize('com_ui_done')}
|
||||
</Button>
|
||||
</OGDialogHeader>
|
||||
</OGDialogFooter>
|
||||
</div>
|
||||
</OGDialogContent>
|
||||
</OGDialog>
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ export default function MemoryEditDialog({ memory }: MemoryEditDialogProps) {
|
|||
const localize = useLocalize();
|
||||
const { data: memData } = useMemoriesQuery();
|
||||
|
||||
const [viewTrue, setViewTrue] = useState(false);
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
// Calculate memory-specific usage: available = tokenLimit - (totalTokens - thisMemoryTokens)
|
||||
const memoryUsage = useMemo(() => {
|
||||
|
|
@ -46,7 +46,7 @@ export default function MemoryEditDialog({ memory }: MemoryEditDialogProps) {
|
|||
}, [memory?.tokenCount, memData?.tokenLimit, memData?.totalTokens]);
|
||||
|
||||
return (
|
||||
<OGDialog open={viewTrue} onOpenChange={setViewTrue}>
|
||||
<OGDialog open={isOpen} onOpenChange={setIsOpen}>
|
||||
<OGDialogTrigger asChild>
|
||||
<TooltipAnchor
|
||||
description={localize('com_ui_view')}
|
||||
|
|
@ -57,7 +57,7 @@ export default function MemoryEditDialog({ memory }: MemoryEditDialogProps) {
|
|||
size="icon"
|
||||
className="size-7"
|
||||
aria-label={localize('com_ui_view')}
|
||||
onClick={() => setViewTrue(true)}
|
||||
onClick={() => setIsOpen(true)}
|
||||
>
|
||||
<Eye className="size-4" aria-hidden="true" />
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue