Skip to content

Commit

Permalink
Upgrade monitor-ui from v22.0.1 to v23.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 12, 2024
1 parent d7582af commit f37a13b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ data class ReportingSummaryDataOutput(
val numberOfObservations: Int,
) {
companion object {
fun fromReportingSummary(reportingSummary: ReportingSummary) = ReportingSummaryDataOutput(
infractionSuspicionsSummary = reportingSummary.infractionSuspicionsSummary.map {
ReportingTitleAndNumberOfOccurrencesDataOutput.fromReportingTitleAndNumberOfOccurrences(it)
},
numberOfInfractionSuspicions = reportingSummary.numberOfInfractionSuspicions,
numberOfObservations = reportingSummary.numberOfObservations
)
fun fromReportingSummary(reportingSummary: ReportingSummary) =
ReportingSummaryDataOutput(
infractionSuspicionsSummary =
reportingSummary.infractionSuspicionsSummary.map {
ReportingTitleAndNumberOfOccurrencesDataOutput.fromReportingTitleAndNumberOfOccurrences(it)
},
numberOfInfractionSuspicions = reportingSummary.numberOfInfractionSuspicions,
numberOfObservations = reportingSummary.numberOfObservations,
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ data class ReportingTitleAndNumberOfOccurrencesDataOutput(
val numberOfOccurrences: Int,
) {
companion object {
fun fromReportingTitleAndNumberOfOccurrences(reportingTitleAndNumberOfOccurrences: ReportingTitleAndNumberOfOccurrences) = ReportingTitleAndNumberOfOccurrencesDataOutput(
fun fromReportingTitleAndNumberOfOccurrences(
reportingTitleAndNumberOfOccurrences: ReportingTitleAndNumberOfOccurrences,
) = ReportingTitleAndNumberOfOccurrencesDataOutput(
title = reportingTitleAndNumberOfOccurrences.title,
numberOfOccurrences = reportingTitleAndNumberOfOccurrences.numberOfOccurrences,
)
Expand Down
8 changes: 4 additions & 4 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"dependencies": {
"@dnd-kit/core": "6.1.0",
"@dnd-kit/modifiers": "6.0.1",
"@mtes-mct/monitor-ui": "22.0.1",
"@mtes-mct/monitor-ui": "23.0.0",
"@reduxjs/toolkit": "2.2.7",
"@sentry/react": "7.117.0",
"@tanstack/react-table": "8.20.5",
Expand Down

0 comments on commit f37a13b

Please sign in to comment.