File tree 2 files changed +6
-3
lines changed
AuditPage/AuditLogRow/AuditLogDiff
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { type Interpolation , type Theme } from "@emotion/react" ;
2
2
import { type FC } from "react" ;
3
- import type { AuditLog } from "api/typesGenerated" ;
3
+ import type { AuditDiff } from "api/typesGenerated" ;
4
4
import colors from "theme/tailwind" ;
5
5
import { MONOSPACE_FONT_FAMILY } from "theme/constants" ;
6
6
@@ -21,7 +21,11 @@ const getDiffValue = (value: unknown): string => {
21
21
return String ( value ) ;
22
22
} ;
23
23
24
- export const AuditLogDiff : FC < { diff : AuditLog [ "diff" ] } > = ( { diff } ) => {
24
+ interface AuditLogDiffProps {
25
+ diff : AuditDiff ;
26
+ }
27
+
28
+ export const AuditLogDiff : FC < AuditLogDiffProps > = ( { diff } ) => {
25
29
const diffEntries = Object . entries ( diff ) ;
26
30
27
31
return (
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ import {
35
35
type ExternalAuthPollingState ,
36
36
} from "./CreateWorkspacePage" ;
37
37
import { useSearchParams } from "react-router-dom" ;
38
- import colors from "theme/tailwind" ;
39
38
import { CreateWSPermissions } from "./permissions" ;
40
39
import { Alert } from "components/Alert/Alert" ;
41
40
You can’t perform that action at this time.
0 commit comments