Skip to content

Commit

Permalink
update(ui): remove useless imports
Browse files Browse the repository at this point in the history
  • Loading branch information
WanQuanXie committed Jun 7, 2024
1 parent 2ae5846 commit 594106a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion ui/components/EmptyChat.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import EmptyChatMessageInput from './EmptyChatMessageInput';
import ThemeSwitcher from './theme/Switcher';

const EmptyChat = ({
sendMessage,
Expand Down
1 change: 0 additions & 1 deletion ui/components/MessageBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { cn } from '@/lib/utils';
import {
BookCopy,
Disc3,
Share,
Volume2,
StopCircle,
Layers3,
Expand Down
1 change: 0 additions & 1 deletion ui/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Clock, Edit, Share, Trash } from 'lucide-react';
import { Message } from './ChatWindow';
import { useEffect, useState } from 'react';
import { formatTimeDifference } from '@/lib/utils';
import ThemeSwitcher from './theme/Switcher';

const Navbar = ({ messages }: { messages: Message[] }) => {
const [title, setTitle] = useState<string>('');
Expand Down
1 change: 0 additions & 1 deletion ui/components/SettingsDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { CloudUpload, RefreshCcw, RefreshCw } from 'lucide-react';
import React, {
Fragment,
useEffect,
useMemo,
useState,
type SelectHTMLAttributes,
} from 'react';
Expand Down
1 change: 0 additions & 1 deletion ui/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { useSelectedLayoutSegments } from 'next/navigation';
import React, { useState, type ReactNode } from 'react';
import Layout from './Layout';
import SettingsDialog from './SettingsDialog';
import ThemeSwitcher from './theme/Switcher';

const VerticalIconContainer = ({ children }: { children: ReactNode }) => {
return (
Expand Down
3 changes: 1 addition & 2 deletions ui/components/theme/Switcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import { useTheme } from 'next-themes';
import { SunIcon, MoonIcon, MonitorIcon } from 'lucide-react';
import { useCallback, useEffect, useState } from 'react';
import { cn } from '@/lib/utils';
import { Select } from '../SettingsDialog';

type Theme = 'dark' | 'light' | 'system';
Expand Down Expand Up @@ -53,7 +52,7 @@ const ThemeSwitcher = ({ className }: { className?: string }) => {
onChange={(e) => handleThemeSwitch(e.target.value as Theme)}
options={[
{ value: 'light', label: 'Light' },
{ value: 'dark', label: 'Dark' }
{ value: 'dark', label: 'Dark' },
]}
/>
);
Expand Down

0 comments on commit 594106a

Please sign in to comment.