File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
site/src/components/AuditLogRow Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const getDiffValue = (value: number | string | boolean) => {
11
11
return value . toString ( )
12
12
}
13
13
14
- export const AuditDiff : React . FC < { diff : AuditLog [ "diff" ] } > = ( { diff } ) => {
14
+ export const AuditLogDiff : React . FC < { diff : AuditLog [ "diff" ] } > = ( { diff } ) => {
15
15
const styles = useStyles ( )
16
16
const diffEntries = Object . entries ( diff )
17
17
Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import { UserAvatar } from "components/UserAvatar/UserAvatar"
11
11
import { ComponentProps , useState } from "react"
12
12
import { Link as RouterLink } from "react-router-dom"
13
13
import { createDayString } from "util/createDayString"
14
- import { AuditDiff } from "./AuditLogDiff"
14
+ import { AuditLogDiff } from "./AuditLogDiff"
15
15
16
16
const pillTypeByHttpStatus = ( httpStatus : number ) : ComponentProps < typeof Pill > [ "type" ] => {
17
17
if ( httpStatus >= 300 && httpStatus < 500 ) {
18
18
return "warning"
19
19
}
20
20
21
- if ( httpStatus > 500 ) {
21
+ if ( httpStatus >= 500 ) {
22
22
return "error"
23
23
}
24
24
@@ -171,7 +171,7 @@ export const AuditLogRow: React.FC<AuditLogRowProps> = ({
171
171
172
172
{ shouldDisplayDiff && (
173
173
< Collapse in = { isDiffOpen } >
174
- < AuditDiff diff = { auditLog . diff } />
174
+ < AuditLogDiff diff = { auditLog . diff } />
175
175
</ Collapse >
176
176
) }
177
177
</ TableCell >
You can’t perform that action at this time.
0 commit comments