Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3343653
D9120.id30910.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
D9120.id30910.diff
View Options
diff --git a/native/bottom-sheets/user-profile-bottom-sheet.react.js b/native/bottom-sheets/user-profile-bottom-sheet.react.js
--- a/native/bottom-sheets/user-profile-bottom-sheet.react.js
+++ b/native/bottom-sheets/user-profile-bottom-sheet.react.js
@@ -2,15 +2,14 @@
import * as React from 'react';
-import type { AccountUserInfo } from 'lib/types/user-types.js';
-
import BottomSheet from './bottom-sheet.react.js';
import UserProfile from '../components/user-profile.react.js';
import type { RootNavigationProp } from '../navigation/root-navigator.react.js';
import type { NavigationRoute } from '../navigation/route-names.js';
+import { useSelector } from '../redux/redux-utils.js';
export type UserProfileBottomSheetParams = {
- +userInfo: AccountUserInfo,
+ +userID: string,
};
type Props = {
@@ -22,12 +21,14 @@
const {
navigation,
route: {
- params: { userInfo },
+ params: { userID },
},
} = props;
const { goBackOnce } = navigation;
+ const userInfo = useSelector(state => state.userStore.userInfos[userID]);
+
const bottomSheetRef = React.useRef();
React.useEffect(() => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 3:48 AM (17 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2567956
Default Alt Text
D9120.id30910.diff (1 KB)
Attached To
Mode
D9120: [native] update UserProfileBottomSheet to get a userInfo from a userID
Attached
Detach File
Event Timeline
Log In to Comment