Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz committed Oct 22, 2024
1 parent e160311 commit 03c7706
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/viewer/src/components/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
<a class="text-dark" href="https://github.com/pi-base">GitHub</a>
</div>
<div class="p-2">
Data last synchonized: <Sync/>
Data last synchonized: <Sync />
</div>
</footer>
10 changes: 5 additions & 5 deletions packages/viewer/src/components/Shared/Age.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
return () => clearInterval(interval)
})
let klass:string = ""
let klass: string = ''
const DAY = 1000 * 60 * 60 * 24
const WEEK = DAY * 7
$: if (Date.now() > new Date(date).getTime() + WEEK) {
klass = "text-danger"
klass = 'text-danger'
} else if (Date.now() > new Date(date).getTime() + DAY) {
klass = "text-warning"
klass = 'text-warning'
} else {
klass = "text-info"
klass = 'text-info'
}
</script>

Expand Down

0 comments on commit 03c7706

Please sign in to comment.