style: Beta UI fixes (#1199)

* fix(EditPresetDialog) endpoint menu

* style: update anthropic's icon & removed hover:bg in PresetItems

* style(OptionsPopover) rounded SaveAsPreset

* style(PresetItems) removed hover:bg

* style(NavLinks) match to openai

* style(NavLinks)

* fix(EditPresetDialog): remove empty cn call

---------

Co-authored-by: Danny Avila <110412045+danny-avila@users.noreply.github.com>
This commit is contained in:
Marco Beretta 2023-11-18 22:45:51 +01:00 committed by GitHub
parent 1fc896d0bd
commit ab5c81d063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 26 deletions

View file

@ -2,11 +2,11 @@ import { EModelEndpoint } from 'librechat-data-provider';
import {
AzureMinimalIcon,
OpenAIMinimalIcon,
ChatGPTMinimalIcon,
LightningIcon,
PluginMinimalIcon,
BingAIMinimalIcon,
PaLMinimalIcon,
AnthropicMinimalIcon,
AnthropicIcon,
} from '~/components/svg';
import { cn } from '~/utils';
import { IconProps } from '~/common';
@ -29,11 +29,11 @@ const MinimalIcon: React.FC<IconProps> = (props) => {
[EModelEndpoint.gptPlugins]: { icon: <PluginMinimalIcon />, name: 'Plugins' },
[EModelEndpoint.google]: { icon: <PaLMinimalIcon />, name: props.modelLabel || 'PaLM2' },
[EModelEndpoint.anthropic]: {
icon: <AnthropicMinimalIcon />,
icon: <AnthropicIcon className="icon-md shrink-0 dark:text-white" />,
name: props.modelLabel || 'Claude',
},
[EModelEndpoint.bingAI]: { icon: <BingAIMinimalIcon />, name: 'BingAI' },
[EModelEndpoint.chatGPTBrowser]: { icon: <ChatGPTMinimalIcon />, name: 'ChatGPT' },
[EModelEndpoint.chatGPTBrowser]: { icon: <LightningIcon />, name: 'ChatGPT' },
default: { icon: <OpenAIMinimalIcon />, name: 'UNKNOWN' },
};