Page MenuHomePhabricator

D9120.id30910.diff
No OneTemporary

D9120.id30910.diff

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

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)

Event Timeline