mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
🧼 chore: Clean up Settings by Removing Beta tab and reorganizing imports
This commit is contained in:
parent
13789ab261
commit
259224d986
1 changed files with 7 additions and 20 deletions
|
|
@ -6,25 +6,18 @@ import { useGetStartupConfig } from '~/data-provider';
|
|||
import type { TDialogProps } from '~/common';
|
||||
import { Dialog, DialogPanel, DialogTitle, Transition, TransitionChild } from '@headlessui/react';
|
||||
import {
|
||||
GearIcon,
|
||||
DataIcon,
|
||||
SpeechIcon,
|
||||
UserIcon,
|
||||
ExperimentIcon,
|
||||
PersonalizationIcon,
|
||||
} from '~/components/svg';
|
||||
import {
|
||||
General,
|
||||
Chat,
|
||||
Speech,
|
||||
Personalization,
|
||||
Commands,
|
||||
Data,
|
||||
General,
|
||||
Account,
|
||||
Balance,
|
||||
Personalization,
|
||||
Speech,
|
||||
Data,
|
||||
Chat,
|
||||
} from './SettingsTabs';
|
||||
import { useMediaQuery, useLocalize, TranslationKeys } from '~/hooks';
|
||||
import { GearIcon, DataIcon, SpeechIcon, UserIcon, PersonalizationIcon } from '~/components/svg';
|
||||
import usePersonalizationAccess from '~/hooks/usePersonalizationAccess';
|
||||
import { useMediaQuery, useLocalize, TranslationKeys } from '~/hooks';
|
||||
import { cn } from '~/utils';
|
||||
|
||||
export default function Settings({ open, onOpenChange }: TDialogProps) {
|
||||
|
|
@ -39,7 +32,6 @@ export default function Settings({ open, onOpenChange }: TDialogProps) {
|
|||
const tabs: SettingsTabValues[] = [
|
||||
SettingsTabValues.GENERAL,
|
||||
SettingsTabValues.CHAT,
|
||||
SettingsTabValues.BETA,
|
||||
SettingsTabValues.COMMANDS,
|
||||
SettingsTabValues.SPEECH,
|
||||
...(hasAnyPersonalizationFeature ? [SettingsTabValues.PERSONALIZATION] : []),
|
||||
|
|
@ -84,11 +76,6 @@ export default function Settings({ open, onOpenChange }: TDialogProps) {
|
|||
icon: <MessageSquare className="icon-sm" />,
|
||||
label: 'com_nav_setting_chat',
|
||||
},
|
||||
{
|
||||
value: SettingsTabValues.BETA,
|
||||
icon: <ExperimentIcon />,
|
||||
label: 'com_nav_setting_beta',
|
||||
},
|
||||
{
|
||||
value: SettingsTabValues.COMMANDS,
|
||||
icon: <Command className="icon-sm" />,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue