1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-21 23:00:50 +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

@@ -13,6 +13,7 @@
// limitations under the License.
import { graphql, usePaginationFragment } from "react-relay";
import Button from "./Button";
import OAuth2Session from "./OAuth2Session";
import { OAuth2SessionList_user$key } from "./__generated__/OAuth2SessionList_user.graphql";
@@ -47,11 +48,7 @@ const OAuth2SessionList: React.FC<Props> = ({ user }) => {
{data.oauth2Sessions.edges.map((n) => (
<OAuth2Session key={n.cursor} session={n.node} />
))}
{hasNext ? (
<button className="bg-accent p-2 rounded" onClick={() => loadNext(2)}>
Load more
</button>
) : null}
{hasNext && <Button onClick={() => loadNext(2)}>Load more</Button>}
</div>
);
};