mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-11 10:32:37 +01:00
fix: Minor UI Changes (#643)
* Minor UI Fixes * Link Icon, from index.ts * Import from components instead of svg * Fix Sidebar and Icons
This commit is contained in:
parent
1a21eb5bae
commit
50374f7539
8 changed files with 41 additions and 574 deletions
|
|
@ -2,8 +2,6 @@ import { Menu, Transition } from '@headlessui/react';
|
|||
import { Fragment, useState } from 'react';
|
||||
import { useRecoilValue } from 'recoil';
|
||||
import SearchBar from './SearchBar';
|
||||
import TrashIcon from '../svg/TrashIcon';
|
||||
import GearIcon from '../svg/GearIcon';
|
||||
import Settings from './Settings';
|
||||
import { Download } from 'lucide-react';
|
||||
import NavLink from './NavLink';
|
||||
|
|
@ -12,9 +10,9 @@ import ClearConvos from './ClearConvos';
|
|||
import Logout from './Logout';
|
||||
import { useAuthContext } from '~/hooks/AuthContext';
|
||||
import { cn } from '~/utils/';
|
||||
import DotsIcon from '../svg/DotsIcon';
|
||||
|
||||
import store from '~/store';
|
||||
import { LinkIcon, DotsIcon, GearIcon, TrashIcon } from '~/components';
|
||||
|
||||
export default function NavLinks({ clearSearch, isSearchEnabled }) {
|
||||
const [showExports, setShowExports] = useState(false);
|
||||
|
|
@ -96,6 +94,14 @@ export default function NavLinks({ clearSearch, isSearchEnabled }) {
|
|||
clickHandler={() => setShowClearConvos(true)}
|
||||
/>
|
||||
</Menu.Item>
|
||||
<Menu.Item as="div">
|
||||
<NavLink
|
||||
className="flex w-full cursor-pointer items-center gap-3 px-3 py-3 text-sm text-white transition-colors duration-200 hover:bg-gray-700 rounded-none"
|
||||
svg={() => <LinkIcon />}
|
||||
text="Help & FAQ"
|
||||
clickHandler={() => window.open('https://docs.librechat.ai/', '_blank')}
|
||||
/>
|
||||
</Menu.Item>
|
||||
<Menu.Item as="div">
|
||||
<NavLink
|
||||
className="flex w-full cursor-pointer items-center gap-3 px-3 py-3 text-sm text-white transition-colors duration-200 hover:bg-gray-700 rounded-none"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue