Page MenuHomePhabricator

D5707.id18826.diff
No OneTemporary

D5707.id18826.diff

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

Mime Type
text/plain
Expires
Mon, Nov 25, 2:58 PM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2579878
Default Alt Text
D5707.id18826.diff (1 KB)

Event Timeline