refactor: Move Tooltip and DarkModeToggle to shared/view/ui

This commit is contained in:
Haileyesus
2026-02-27 22:37:38 +03:00
parent 6e03964b8b
commit b9bac8a5e5
9 changed files with 6 additions and 6 deletions

View File

@@ -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';

View File

@@ -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,

View File

@@ -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';

View File

@@ -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';

View File

@@ -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;

View File

@@ -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';