1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

frontend: add tests & stories for many components

Also more compound adoption
Also prettier upgrade
This commit is contained in:
Quentin Gliech
2023-08-04 16:46:51 +02:00
parent c8ba2a1fa3
commit f001463585
52 changed files with 1246 additions and 193 deletions

View File

@@ -79,7 +79,7 @@ const oauth2SessionListFamily = atomFamily((userId: string) => {
const oauth2SessionList = mapQueryAtom(
oauth2SessionListQuery,
(data) => data.user?.oauth2Sessions || null
(data) => data.user?.oauth2Sessions || null,
);
return oauth2SessionList;
@@ -97,7 +97,7 @@ const pageInfoFamily = atomFamily((userId: string) => {
const paginationFamily = atomFamily((userId: string) => {
const paginationAtom = atomWithPagination(
currentPaginationAtom,
pageInfoFamily(userId)
pageInfoFamily(userId),
);
return paginationAtom;
});