fix(ui): remove unused lint leftovers
This commit is contained in:
@@ -44,7 +44,7 @@ import { formatShortcutForDisplay, getEffectiveShortcutCombo } from '@/lib/short
|
|||||||
import { isDesktopShell, isVSCodeRuntime, isWebRuntime } from '@/lib/desktop';
|
import { isDesktopShell, isVSCodeRuntime, isWebRuntime } from '@/lib/desktop';
|
||||||
import { SETTINGS_PAGE_METADATA, type SettingsRuntimeContext } from '@/lib/settings/metadata';
|
import { SETTINGS_PAGE_METADATA, type SettingsRuntimeContext } from '@/lib/settings/metadata';
|
||||||
import { getSettingsNavIcon } from '@/components/views/SettingsView';
|
import { getSettingsNavIcon } from '@/components/views/SettingsView';
|
||||||
import { rankByFuzzyQuery, scoreByFuzzyQuery } from '@/lib/search/fuzzySearch';
|
import { scoreByFuzzyQuery } from '@/lib/search/fuzzySearch';
|
||||||
import { truncatePathMiddle } from '@/lib/utils';
|
import { truncatePathMiddle } from '@/lib/utils';
|
||||||
import { useI18n } from '@/lib/i18n';
|
import { useI18n } from '@/lib/i18n';
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import {
|
|||||||
RiBrainAi3Line,
|
RiBrainAi3Line,
|
||||||
RiCloseCircleLine,
|
RiCloseCircleLine,
|
||||||
RiCommandLine,
|
RiCommandLine,
|
||||||
RiFileLine,
|
|
||||||
RiGitBranchLine,
|
RiGitBranchLine,
|
||||||
RiLayoutLeftLine,
|
RiLayoutLeftLine,
|
||||||
RiLayoutRightLine,
|
RiLayoutRightLine,
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ import { BranchSelector } from './BranchSelector';
|
|||||||
import { WorktreeBranchDisplay } from './WorktreeBranchDisplay';
|
import { WorktreeBranchDisplay } from './WorktreeBranchDisplay';
|
||||||
import { SyncActions } from './SyncActions';
|
import { SyncActions } from './SyncActions';
|
||||||
import type { GitStatus, GitIdentityProfile, GitRemote } from '@/lib/api/types';
|
import type { GitStatus, GitIdentityProfile, GitRemote } from '@/lib/api/types';
|
||||||
import { useUIStore } from '@/stores/useUIStore';
|
|
||||||
import { useI18n } from '@/lib/i18n';
|
import { useI18n } from '@/lib/i18n';
|
||||||
|
|
||||||
type SyncAction = 'fetch' | 'pull' | 'push' | null;
|
type SyncAction = 'fetch' | 'pull' | 'push' | null;
|
||||||
@@ -211,14 +210,10 @@ export const GitHeader: React.FC<GitHeaderProps> = ({
|
|||||||
onOpenHistory,
|
onOpenHistory,
|
||||||
}) => {
|
}) => {
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
const isMobile = useUIStore((state) => state.isMobile);
|
|
||||||
|
|
||||||
if (!status) {
|
if (!status) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const useTwoRowHeader = isMobile;
|
|
||||||
|
|
||||||
const managementButtons = (
|
const managementButtons = (
|
||||||
<div className="flex items-center gap-1 shrink-0">
|
<div className="flex items-center gap-1 shrink-0">
|
||||||
{onOpenHistory ? (
|
{onOpenHistory ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user