move code
This commit is contained in:
@@ -33,7 +33,7 @@ import HomeView, {
|
||||
type HomeAgentModeItem,
|
||||
type HomeAttachmentDraft,
|
||||
} from './view/home';
|
||||
import { useLauncherHomeDraftStore } from './stores/useHomeDraftStore';
|
||||
import { useLauncherHomeDraftStore } from './view/home/useHomeDraftStore';
|
||||
import {
|
||||
getClientProfileDashboard,
|
||||
getClientProfileWalletLedger,
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import { createContext } from 'react';
|
||||
|
||||
import type { HomeAttachmentDraft } from '../../../../stores/useHomeDraftStore';
|
||||
import type { HomeAttachmentDraft } from '../../useHomeDraftStore';
|
||||
|
||||
const AttachmentContext = createContext({
|
||||
attachments: new Map<string, HomeAttachmentDraft>(),
|
||||
|
||||
@@ -23,7 +23,7 @@ import { useEffect, useMemo, useRef } from 'react';
|
||||
import type {
|
||||
HomeAttachmentDraft,
|
||||
RichText,
|
||||
} from '../../../../stores/useHomeDraftStore';
|
||||
} from '../../useHomeDraftStore';
|
||||
import AttachmentContext from './attachmentContext';
|
||||
import {
|
||||
$createAttachmentNode,
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import type {
|
||||
HomeAttachmentDraft,
|
||||
RichText,
|
||||
} from '../../../../stores/useHomeDraftStore';
|
||||
} from '../../useHomeDraftStore';
|
||||
|
||||
function ordinalSuffix(index: number) {
|
||||
if (index % 100 >= 11 && index % 100 <= 13) return 'th';
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
type HomeAgentMode,
|
||||
type HomeDraft,
|
||||
useLauncherHomeDraftStore,
|
||||
} from '../../stores/useHomeDraftStore';
|
||||
} from './useHomeDraftStore';
|
||||
import RichInputArea from './components/RichInputArea';
|
||||
import { richTextToPrompt } from './components/RichInputArea/richTextToPrompt';
|
||||
import { useHomeShowcase } from './useHomeShowcase';
|
||||
@@ -23,7 +23,7 @@ export type {
|
||||
HomeAgentMode,
|
||||
HomeAttachmentDraft,
|
||||
HomeDraft,
|
||||
} from '../../stores/useHomeDraftStore';
|
||||
} from './useHomeDraftStore';
|
||||
|
||||
export type HomeAgentModeItem = {
|
||||
mode: HomeAgentMode;
|
||||
|
||||
Reference in New Issue
Block a user