Browse Source

Remove useless SearchableList props.

main
Titouan Rigoudy 4 years ago
parent
commit
8abfebd428
2 changed files with 3 additions and 6 deletions
  1. +2
    -3
      src/components/SearchableList.tsx
  2. +1
    -3
      src/modules/user/UserList.tsx

+ 2
- 3
src/components/SearchableList.tsx View File

@ -6,7 +6,6 @@ interface ItemProps<Item> {
}
interface ListProps<Item> {
id: string;
map: { [key: string]: Item };
}
@ -26,8 +25,8 @@ function SearchableList<Item>(
}
return (
<div id={id} className="flex flex-col h-full px-3">
<ul className="flex-1 flex flex-col">{children}</ul>
<div className="flex flex-col h-full px-3">
<ul className="flex-grow flex flex-col">{children}</ul>
</div>
);
};


+ 1
- 3
src/modules/user/UserList.tsx View File

@ -10,8 +10,6 @@ interface Props {
users: UserMap;
}
const UserList: FC<Props> = ({ users }) => (
<SearchableUserList id="user-list" map={users} refresh={() => {}} />
);
const UserList: FC<Props> = ({ users }) => <SearchableUserList map={users} />;
export default UserList;

Loading…
Cancel
Save