Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
refactor(BingStyles.jsx): use cn utility function to concatenate class names in defaultSelected variable
Danny Avilab703d3706bb5
diff --git a/client/src/components/Input/BingStyles.jsx b/client/src/components/Input/BingStyles.jsxindex 24c78a1aba..6929515118 100644--- a/client/src/components/Input/BingStyles.jsx+++ b/client/src/components/Input/BingStyles.jsx@@ -1,6 +1,7 @@import React, { useState, useEffect, forwardRef } from 'react';import { Tabs, TabsList, TabsTrigger } from '../ui/Tabs.tsx';import { useRecoilValue, useRecoilState } from 'recoil';+import { cn } from '../../utils';import store from '~/store';@@ -14,7 +15,7 @@ function BingStyles(props, ref) {const show = isBing && (!conversationId || messages?.length === 0 || props.show);const defaultClasses ='p-2 rounded-md min-w-[75px] font-normal bg-white/[.60] dark:bg-gray-700 text-black text-xs';- const defaultSelected = defaultClasses + 'font-medium data-[state=active]:text-white text-xs';+ const defaultSelected = cn(defaultClasses, 'font-medium data-[state=active]:text-white text-xs text-white');const selectedClass = val => val + '-tab ' + defaultSelected;