Skip to content

Commit fb1ac74

Browse files
committed
Fix formatting
1 parent 498c5fd commit fb1ac74

File tree

6 files changed

+12
-23
lines changed

6 files changed

+12
-23
lines changed

frontend/components/Details/ContentDetails/ContentDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ export default function ContentDetails({
137137
)}
138138
</div>
139139
)
140-
}
140+
}

frontend/components/Details/ContentDetails/OfficerContentDetails.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,14 @@ export default function OfficerContentDetails({ officer }: OfficerContentDetails
99
const totalComplaints =
1010
officer.allegation_summary?.reduce((sum, a) => sum + a.complaint_count, 0) || 0
1111

12-
const totalAllegations =
13-
officer.allegation_summary?.reduce((sum, a) => sum + a.count, 0) || 0
12+
const totalAllegations = officer.allegation_summary?.reduce((sum, a) => sum + a.count, 0) || 0
1413

1514
const totalSubstantiated =
1615
officer.allegation_summary?.reduce((sum, a) => sum + a.substantiated_count, 0) || 0
1716

1817
const dataSources =
19-
officer.sources
20-
?.map((source) => source.name)
21-
.filter((name): name is string => Boolean(name)) || []
18+
officer.sources?.map((source) => source.name).filter((name): name is string => Boolean(name)) ||
19+
[]
2220

2321
return (
2422
<ContentDetails
@@ -42,4 +40,4 @@ export default function OfficerContentDetails({ officer }: OfficerContentDetails
4240
associatedHref="#"
4341
/>
4442
)
45-
}
43+
}

frontend/components/Details/IdentityCard/IdentityCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ export default function IdentityCard({
4242
</div>
4343
</div>
4444
)
45-
}
45+
}

frontend/components/Details/IdentityCard/OfficerIdentityCard.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export default function OfficerIdentityCard(officer: Officer) {
2828
const subtitleParts = [
2929
officer.ethnicity,
3030
officer.gender ? officer.gender.toLowerCase() : null,
31-
officer.year_of_birth
32-
? `${getAgeFromBirthYear(officer.year_of_birth)} years old`
33-
: null
31+
officer.year_of_birth ? `${getAgeFromBirthYear(officer.year_of_birth)} years old` : null
3432
].filter(Boolean)
3533

3634
const detail = currentEmployment
@@ -46,4 +44,4 @@ export default function OfficerIdentityCard(officer: Officer) {
4644
detail={detail}
4745
/>
4846
)
49-
}
47+
}

frontend/components/Details/tabs/DetailsTabs.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ function a11yProps(index: number) {
4343
}
4444
}
4545

46-
export default function DetailsTabs({
47-
tabs,
48-
ariaLabel = "detail tabs"
49-
}: DetailsTabsProps) {
46+
export default function DetailsTabs({ tabs, ariaLabel = "detail tabs" }: DetailsTabsProps) {
5047
const [value, setValue] = React.useState(0)
5148

5249
const handleChange = (_event: React.SyntheticEvent, newValue: number) => {
@@ -82,4 +79,4 @@ export default function DetailsTabs({
8279
))}
8380
</Box>
8481
)
85-
}
82+
}

frontend/components/Details/tabs/OfficerDetailsTabs.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ export default function OfficerDetailsTabs(officer: Officer) {
1616
label: "Background",
1717
content: (
1818
<>
19-
<Typography
20-
component="h2"
21-
variant="h5"
22-
sx={{ fontSize: "1.3rem", fontWeight: "500" }}
23-
>
19+
<Typography component="h2" variant="h5" sx={{ fontSize: "1.3rem", fontWeight: "500" }}>
2420
Background
2521
</Typography>
2622
<StateRecords officer={officer} />
@@ -55,4 +51,4 @@ export default function OfficerDetailsTabs(officer: Officer) {
5551
]
5652

5753
return <DetailsTabs tabs={tabs} ariaLabel="officer detail tabs" />
58-
}
54+
}

0 commit comments

Comments
 (0)