File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
site/src/pages/AuditPage/AuditLogRow Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1
1
import type { CSSObject , Interpolation , Theme } from "@emotion/react" ;
2
2
import Collapse from "@mui/material/Collapse" ;
3
+ import Link from "@mui/material/Link" ;
3
4
import TableCell from "@mui/material/TableCell" ;
4
5
import { type FC , useState } from "react" ;
6
+ import { Link as RouterLink } from "react-router-dom" ;
5
7
import userAgentParser from "ua-parser-js" ;
6
8
import type { AuditLog } from "api/typesGenerated" ;
7
9
import { DropdownArrow } from "components/DropdownArrow/DropdownArrow" ;
@@ -132,6 +134,20 @@ export const AuditLogRow: FC<AuditLogRowProps> = ({
132
134
</ strong >
133
135
</ span >
134
136
) }
137
+ { auditLog . organization && (
138
+ < span css = { styles . auditLogInfo } >
139
+ < > Org: </ >
140
+ < Link
141
+ component = { RouterLink }
142
+ to = { `/organizations/${ auditLog . organization . name } ` }
143
+ >
144
+ < strong >
145
+ { auditLog . organization . display_name ||
146
+ auditLog . organization . name }
147
+ </ strong >
148
+ </ Link >
149
+ </ span >
150
+ ) }
135
151
</ Stack >
136
152
137
153
< Pill
You can’t perform that action at this time.
0 commit comments