Skip to content

Commit

Permalink
feat(view-source): add build time
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Feb 27, 2024
1 parent bcb317e commit ee1960b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/component/ViewSource.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useNavigation } from '../context/Navigation.js'
import { Close, ViewSource } from '../icons/LucideIcon.jsx'
import { RelativeTime } from './RelativeTime.jsx'
import { SidebarContent } from './Sidebar.js'
import { Show } from 'solid-js'

Expand Down Expand Up @@ -78,6 +79,9 @@ export const Sidebar = () => {
</section>
<footer>
<p>Version: {VERSION}</p>
<p>
Build time: <RelativeTime time={new Date(BUILD_TIME)} />
</p>
</footer>
</SidebarContent>
</Show>
Expand Down

0 comments on commit ee1960b

Please sign in to comment.