Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3402004
D3901.id12180.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D3901.id12180.diff
View Options
diff --git a/native/chat/composed-message.react.js b/native/chat/composed-message.react.js
--- a/native/chat/composed-message.react.js
+++ b/native/chat/composed-message.react.js
@@ -16,10 +16,10 @@
import { useComposedMessageMaxWidth } from './composed-message-width';
import { FailedSend } from './failed-send.react';
import {
- InlineSidebar,
- inlineSidebarMarginBottom,
inlineSidebarMarginTop,
-} from './inline-sidebar.react';
+ inlineSidebarMarginBottom,
+} from './inline-sidebar-constants';
+import InlineSidebar from './inline-sidebar.react';
import { MessageHeader } from './message-header.react';
import { useNavigateToSidebar } from './sidebar-navigation';
import SwipeableMessage from './swipeable-message.react';
diff --git a/native/chat/inline-sidebar-constants.js b/native/chat/inline-sidebar-constants.js
new file mode 100644
--- /dev/null
+++ b/native/chat/inline-sidebar-constants.js
@@ -0,0 +1,5 @@
+// @flow
+
+export const inlineSidebarHeight = 20;
+export const inlineSidebarMarginTop = 5;
+export const inlineSidebarMarginBottom = 3;
diff --git a/native/chat/inline-sidebar.react.js b/native/chat/inline-sidebar.react.js
--- a/native/chat/inline-sidebar.react.js
+++ b/native/chat/inline-sidebar.react.js
@@ -9,6 +9,7 @@
import Button from '../components/button.react';
import { useStyles } from '../themes/colors';
+import { inlineSidebarHeight } from './inline-sidebar-constants';
import { useNavigateToThread } from './message-list-types';
type Props = {
@@ -57,10 +58,6 @@
);
}
-const inlineSidebarHeight = 20;
-const inlineSidebarMarginTop = 5;
-const inlineSidebarMarginBottom = 3;
-
const unboundStyles = {
content: {
flexDirection: 'row',
@@ -99,9 +96,4 @@
},
};
-export {
- InlineSidebar,
- inlineSidebarHeight,
- inlineSidebarMarginTop,
- inlineSidebarMarginBottom,
-};
+export default InlineSidebar;
diff --git a/native/chat/multimedia-message-utils.js b/native/chat/multimedia-message-utils.js
--- a/native/chat/multimedia-message-utils.js
+++ b/native/chat/multimedia-message-utils.js
@@ -13,10 +13,10 @@
import { clusterEndHeight } from './composed-message.react';
import { failedSendHeight } from './failed-send.react';
import {
- inlineSidebarHeight,
inlineSidebarMarginBottom,
inlineSidebarMarginTop,
-} from './inline-sidebar.react';
+ inlineSidebarHeight,
+} from './inline-sidebar-constants';
import { authorNameHeight } from './message-header.react';
const spaceBetweenImages = 4;
diff --git a/native/chat/robotext-message.react.js b/native/chat/robotext-message.react.js
--- a/native/chat/robotext-message.react.js
+++ b/native/chat/robotext-message.react.js
@@ -16,7 +16,7 @@
import type { VerticalBounds } from '../types/layout-types';
import { AnimatedView } from '../types/styles';
import type { ChatNavigationProp } from './chat.react';
-import { InlineSidebar } from './inline-sidebar.react';
+import InlineSidebar from './inline-sidebar.react';
import { InnerRobotextMessage } from './inner-robotext-message.react';
import { robotextMessageTooltipHeight } from './robotext-message-tooltip-modal.react';
import { Timestamp } from './timestamp.react';
diff --git a/native/chat/utils.js b/native/chat/utils.js
--- a/native/chat/utils.js
+++ b/native/chat/utils.js
@@ -32,7 +32,7 @@
inlineSidebarHeight,
inlineSidebarMarginBottom,
inlineSidebarMarginTop,
-} from './inline-sidebar.react';
+} from './inline-sidebar-constants';
import { authorNameHeight } from './message-header.react';
import { multimediaMessageItemHeight } from './multimedia-message-utils';
import { getSidebarThreadInfo } from './sidebar-navigation';
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 2:54 PM (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611766
Default Alt Text
D3901.id12180.diff (3 KB)
Attached To
Mode
D3901: [native] [fix] [ENG-1078] fix hot reload loosing state
Attached
Detach File
Event Timeline
Log In to Comment