♻ Refactor Deposit and Register
🏷 Pick a part query types to simplify typing and fix incompatible types
This commit is contained in:
1 parent
8b0aaa287e
commit
aa66694fd5
7 files changed
+197
-146
No files matched your search
@@ -12,7 +12,7 @@ export const UserList = () => {
|
||||
if (loading) return <div>Loading...</div>;
|
||||
|
||||
const allUsers = data?.allUsers || [];
|
||||
const users = showAll ? allUsers : allUsers.filter(activeUserFilter);
|
||||
const users = showAll ? allUsers : allUsers.filter((u) => activeUserFilter(u));
|
||||
return (
|
||||
<div>
|
||||
<button type="button" className="btn btn-link" onClick={() => setShowAll(!showAll)}>
|
||||
|
||||
Reference in new issue
Block a user