Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3494242
D4307.id13673.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
D4307.id13673.diff
View Options
diff --git a/web/settings/relationship/add-users-list.css b/web/settings/relationship/add-users-list.css
--- a/web/settings/relationship/add-users-list.css
+++ b/web/settings/relationship/add-users-list.css
@@ -1,3 +1,10 @@
+.container {
+ overflow: auto;
+ height: 580px;
+ display: flex;
+ flex-direction: column;
+}
+
.addUserButton {
display: flex;
flex-direction: row;
diff --git a/web/settings/relationship/add-users-list.react.js b/web/settings/relationship/add-users-list.react.js
--- a/web/settings/relationship/add-users-list.react.js
+++ b/web/settings/relationship/add-users-list.react.js
@@ -9,6 +9,8 @@
import { useServerCall } from 'lib/utils/action-utils.js';
import { useSelector } from '../../redux/redux-utils.js';
+import AddUsersListItem from './add-users-list-item.react.js';
+import css from './add-users-list.css';
type Props = {
+searchText: string,
@@ -70,7 +72,6 @@
userStoreSearchResults,
]);
- // eslint-disable-next-line no-unused-vars
const sortedUsers = React.useMemo(
() =>
Object.keys(mergedUserInfos)
@@ -80,7 +81,18 @@
[excludedStatuses, mergedUserInfos],
);
- return null;
+ const userRows = React.useMemo(
+ () =>
+ sortedUsers.map(userInfo => (
+ <AddUsersListItem
+ userInfo={userInfo}
+ key={userInfo.id}
+ selectUser={() => {}}
+ />
+ )),
+ [sortedUsers],
+ );
+ return <div className={css.container}>{userRows}</div>;
}
export default AddUsersList;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 4:47 AM (20 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679877
Default Alt Text
D4307.id13673.diff (1 KB)
Attached To
Mode
D4307: [web] Render a list of add user items
Attached
Detach File
Event Timeline
Log In to Comment