+ );
+};
+
+export default OAuth2SessionDetail;
diff --git a/frontend/src/components/SessionDetail/SessionDetail.tsx b/frontend/src/components/SessionDetail/SessionDetail.tsx
index 474ac5a82..71323181b 100644
--- a/frontend/src/components/SessionDetail/SessionDetail.tsx
+++ b/frontend/src/components/SessionDetail/SessionDetail.tsx
@@ -20,8 +20,9 @@ import { useMemo } from "react";
import { Link } from "../../Router";
import { graphql } from "../../gql/gql";
-import CompatSession from "../CompatSession";
-import OAuth2Session from "../OAuth2Session";
+
+import CompatSessionDetail from "./CompatSessionDetail";
+import OAuth2SessionDetail from "./OAuth2SessionDetail";
const QUERY = graphql(/* GraphQL */ `
query SessionQuery($userId: ID!, $deviceId: String!) {
@@ -70,9 +71,9 @@ const SessionDetail: React.FC<{
const sessionType = session.__typename;
if (sessionType === "Oauth2Session") {
- return ;
+ return ;
} else {
- return ;
+ return ;
}
};
diff --git a/frontend/src/components/SessionDetail/SessionDetails.module.css b/frontend/src/components/SessionDetail/SessionDetails.module.css
new file mode 100644
index 000000000..730be4c59
--- /dev/null
+++ b/frontend/src/components/SessionDetail/SessionDetails.module.css
@@ -0,0 +1,36 @@
+/* Copyright 2023 The Matrix.org Foundation C.I.C.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+.list {
+ display: flex;
+ flex-direction: column;
+ margin-top: var(--cpd-space-1x);
+ gap: var(--cpd-space-1x);
+}
+
+.detail-row {
+ display: flex;
+ flex-direction: row;
+ gap: var(--cpd-space-4x);
+}
+
+.detail-label {
+ flex: 0 0 20%;
+ color: var(--cpd-color-text-secondary);
+}
+
+.detail-value {
+ overflow-wrap: anywhere;
+}
diff --git a/frontend/src/components/SessionDetail/SessionDetails.tsx b/frontend/src/components/SessionDetail/SessionDetails.tsx
new file mode 100644
index 000000000..74eddaaa8
--- /dev/null
+++ b/frontend/src/components/SessionDetail/SessionDetails.tsx
@@ -0,0 +1,52 @@
+// Copyright 2022 The Matrix.org Foundation C.I.C.
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+import { H6, Body } from "@vector-im/compound-web";
+import { ReactNode } from "react";
+
+import Block from "../Block/Block";
+
+import styles from "./SessionDetails.module.css";
+
+type Detail = { label: string; value: string | ReactNode };
+type Props = {
+ title: string;
+ details: Detail[];
+};
+
+const DetailRow: React.FC = ({ label, value }) => (
+