Skip to content

Commit

Permalink
Add return type
Browse files Browse the repository at this point in the history
  • Loading branch information
xplato committed May 21, 2024
1 parent 1ef458c commit 87d1b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ui/noise-sensor/NoiseSensorEventItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ function getContextSublabel(event: Event): string | null {
return null
}

const formatDate = (dateTime: string) =>
const formatDate = (dateTime: string): string =>
DateTime.fromISO(dateTime).toLocaleString(DateTime.DATE_FULL)

const formatTime = (dateTime: string) =>
const formatTime = (dateTime: string): string =>
DateTime.fromISO(dateTime).toLocaleString(DateTime.TIME_SIMPLE)

const t = {
Expand Down

0 comments on commit 87d1b1f

Please sign in to comment.