mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-08 07:27:40 +00:00
refactor: Move Tooltip and DarkModeToggle to shared/view/ui
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
|||||||
GripVertical
|
GripVertical
|
||||||
} from 'lucide-react';
|
} from 'lucide-react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { DarkModeToggle } from '../shared/ui';
|
import { DarkModeToggle } from '../shared/view/ui';
|
||||||
|
|
||||||
import { useUiPreferences } from '../hooks/useUiPreferences';
|
import { useUiPreferences } from '../hooks/useUiPreferences';
|
||||||
import { useTheme } from '../contexts/ThemeContext';
|
import { useTheme } from '../contexts/ThemeContext';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Clock, CheckCircle, Circle, AlertCircle, Pause, X, ArrowRight, ChevronUp, Minus, Flag } from 'lucide-react';
|
import { Clock, CheckCircle, Circle, AlertCircle, Pause, X, ArrowRight, ChevronUp, Minus, Flag } from 'lucide-react';
|
||||||
import { cn } from '../lib/utils';
|
import { cn } from '../lib/utils';
|
||||||
import { Tooltip } from '../shared/ui';
|
import { Tooltip } from '../shared/view/ui';
|
||||||
|
|
||||||
const TaskCard = ({
|
const TaskCard = ({
|
||||||
task,
|
task,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { MessageSquare, Terminal, Folder, GitBranch, ClipboardCheck, type LucideIcon } from 'lucide-react';
|
import { MessageSquare, Terminal, Folder, GitBranch, ClipboardCheck, type LucideIcon } from 'lucide-react';
|
||||||
import { Tooltip } from '../../../../shared/ui';
|
import { Tooltip } from '../../../../shared/view/ui';
|
||||||
import type { AppTab } from '../../../../types/app';
|
import type { AppTab } from '../../../../types/app';
|
||||||
import type { Dispatch, SetStateAction } from 'react';
|
import type { Dispatch, SetStateAction } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { ReactNode } from 'react';
|
import type { ReactNode } from 'react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import { DarkModeToggle } from '../../../../shared/ui';
|
import { DarkModeToggle } from '../../../../shared/view/ui';
|
||||||
import LanguageSelector from '../../../LanguageSelector';
|
import LanguageSelector from '../../../LanguageSelector';
|
||||||
import type { CodeEditorSettingsState, ProjectSortOrder } from '../../types/types';
|
import type { CodeEditorSettingsState, ProjectSortOrder } from '../../types/types';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Moon, Sun } from 'lucide-react';
|
import { Moon, Sun } from 'lucide-react';
|
||||||
import { useTheme } from '../../../contexts/ThemeContext';
|
import { useTheme } from '../../../../contexts/ThemeContext';
|
||||||
|
|
||||||
type DarkModeToggleProps = {
|
type DarkModeToggleProps = {
|
||||||
checked?: boolean;
|
checked?: boolean;
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { type ReactNode, useEffect, useRef, useState } from 'react';
|
import { type ReactNode, useEffect, useRef, useState } from 'react';
|
||||||
import { cn } from '../../../lib/utils';
|
import { cn } from '../../../../lib/utils';
|
||||||
|
|
||||||
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
||||||
|
|
||||||
Reference in New Issue
Block a user