1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-24 23:01:05 +03:00

Configure Storybook

This commit is contained in:
Quentin Gliech
2022-11-15 14:42:49 +01:00
parent f195cd3567
commit 7dec625114
13 changed files with 20658 additions and 38 deletions

View File

@@ -14,6 +14,7 @@
import { graphql, usePaginationFragment } from "react-relay";
import BrowserSession from "./BrowserSession";
import Button from "./Button";
import { BrowserSessionList_user$key } from "./__generated__/BrowserSessionList_user.graphql";
@@ -52,11 +53,7 @@ const BrowserSessionList: React.FC<Props> = ({ user, currentSessionId }) => {
isCurrent={n.node.id === currentSessionId}
/>
))}
{hasNext ? (
<button className="bg-accent p-2 rounded" onClick={() => loadNext(2)}>
Load more
</button>
) : null}
{hasNext && <Button onClick={() => loadNext(2)}>Load more</Button>}
</div>
);
};