Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3360514
D5707.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D5707.diff
View Options
diff --git a/native/chat/thread-draft-updater.react.js b/lib/components/thread-draft-updater.react.js
rename from native/chat/thread-draft-updater.react.js
rename to lib/components/thread-draft-updater.react.js
--- a/native/chat/thread-draft-updater.react.js
+++ b/lib/components/thread-draft-updater.react.js
@@ -4,12 +4,11 @@
import * as React from 'react';
import { useDispatch } from 'react-redux';
-import { moveDraftActionType } from 'lib/actions/draft-actions';
-import { pendingToRealizedThreadIDsSelector } from 'lib/selectors/thread-selectors';
-import { draftKeyFromThreadID } from 'lib/shared/thread-utils';
-
-import { useSelector } from '../redux/redux-utils';
-import type { AppState } from '../redux/state-types';
+import { moveDraftActionType } from '../actions/draft-actions';
+import { pendingToRealizedThreadIDsSelector } from '../selectors/thread-selectors';
+import { draftKeyFromThreadID } from '../shared/thread-utils';
+import type { AppState } from '../types/redux-types';
+import { useSelector } from '../utils/redux-utils';
const ThreadDraftUpdater: React.ComponentType<{}> = React.memo<{}>(
function ThreadDraftUpdater() {
diff --git a/native/chat/chat.react.js b/native/chat/chat.react.js
--- a/native/chat/chat.react.js
+++ b/native/chat/chat.react.js
@@ -23,6 +23,7 @@
import { Platform, View } from 'react-native';
import { useSelector } from 'react-redux';
+import ThreadDraftUpdater from 'lib/components/thread-draft-updater.react';
import { isLoggedIn } from 'lib/selectors/user-selectors';
import {
threadIsPending,
@@ -59,7 +60,6 @@
import MessageStorePruner from './message-store-pruner.react';
import DeleteThread from './settings/delete-thread.react';
import ThreadSettings from './settings/thread-settings.react';
-import ThreadDraftUpdater from './thread-draft-updater.react';
import ThreadScreenPruner from './thread-screen-pruner.react';
import ThreadSettingsButton from './thread-settings-button.react';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 1:01 PM (20 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2579878
Default Alt Text
D5707.diff (1 KB)
Attached To
Mode
D5707: Move ThreadDraftUpdater component to lib
Attached
Detach File
Event Timeline
Log In to Comment