1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-12-05 10:42:14 +03:00

Ability to remove emails

This commit is contained in:
Quentin Gliech
2023-04-28 17:11:23 +02:00
parent e8b7591d7e
commit 741873b84e
14 changed files with 2085 additions and 1629 deletions

View File

@@ -13,7 +13,7 @@
// limitations under the License.
import { atom, useAtomValue, useSetAtom } from "jotai";
import { atomFamily, atomWithDefault } from "jotai/utils";
import { atomFamily } from "jotai/utils";
import { atomWithQuery } from "jotai-urql";
import { useTransition } from "react";
@@ -22,7 +22,6 @@ import { PageInfo } from "../gql/graphql";
import {
atomForCurrentPagination,
atomWithPagination,
pageSizeAtom,
Pagination,
} from "../pagination";
@@ -143,6 +142,7 @@ const UserEmailList: React.FC<{
{result.data?.user?.emails?.edges?.map((edge) => (
<UserEmail
email={edge.node}
userId={userId}
key={edge.cursor}
isPrimary={primaryEmailId === edge.node.id}
highlight={highlightedEmail === edge.node.id}