Move inlinecode to shared ui package

This commit is contained in:
Gregory Schier
2026-03-12 19:32:04 -07:00
parent d253d1605c
commit 4d792c7f9f
36 changed files with 35 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
import { useAtomValue } from 'jotai';
import { useEffect, useState } from 'react';
import { InlineCode } from '../components/core/InlineCode';
import { InlineCode } from '@yaakapp-internal/ui';
import { showToast } from '../lib/toast';
import { activeWorkspaceAtom } from './useActiveWorkspace';

View File

@@ -3,9 +3,8 @@ import { modelTypeLabel, patchModel } from '@yaakapp-internal/models';
import { useMemo } from 'react';
import { openFolderSettings } from '../commands/openFolderSettings';
import { openWorkspaceSettings } from '../commands/openWorkspaceSettings';
import { Icon } from '@yaakapp-internal/ui';
import { Icon, InlineCode } from '@yaakapp-internal/ui';
import { IconTooltip } from '../components/core/IconTooltip';
import { InlineCode } from '../components/core/InlineCode';
import { HStack } from '../components/core/Stacks';
import type { TabItem } from '../components/core/Tabs/Tabs';
import { capitalize } from '../lib/capitalize';

View File

@@ -1,5 +1,5 @@
import { useMutation } from '@tanstack/react-query';
import { InlineCode } from '../components/core/InlineCode';
import { InlineCode } from '@yaakapp-internal/ui';
import { showAlert } from '../lib/alert';
import { appInfo } from '../lib/appInfo';
import { minPromiseMillis } from '../lib/minPromiseMillis';

View File

@@ -3,7 +3,7 @@ import type { HttpResponse } from '@yaakapp-internal/models';
import { getModel } from '@yaakapp-internal/models';
import mime from 'mime';
import slugify from 'slugify';
import { InlineCode } from '../components/core/InlineCode';
import { InlineCode } from '@yaakapp-internal/ui';
import { getContentTypeFromHeaders } from '../lib/model_util';
import { invokeCmd } from '../lib/tauri';
import { showToast } from '../lib/toast';