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

Standalone pages to view an OAuth client and a browser session

This commit is contained in:
Quentin Gliech
2022-11-16 17:47:25 +01:00
parent 78778648ca
commit 6021aa691c
9 changed files with 418 additions and 5 deletions

View File

@@ -18,6 +18,7 @@ import { graphql, useFragment } from "react-relay";
import Block from "./Block";
import { Body, Subtitle } from "./Typography";
import DateTime from "./DateTime";
import { Link } from "react-router-dom";
type Props = {
session: BrowserSession_session$key;
@@ -46,7 +47,12 @@ const BrowserSession: React.FC<Props> = ({ session, isCurrent }) => {
<Block>
{isCurrent && <Subtitle>Current session</Subtitle>}
<Body>
Started: <DateTime datetime={createdAt} />
<Link
to={`/session/${data.id}`}
className="text-links hover:text-links/75"
>
Started: <DateTime datetime={createdAt} />
</Link>
</Body>
<Body>
Last authentication:{" "}