Skip to content

Commit

Permalink
Update home.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb8005 authored Jan 15, 2022
1 parent 5446786 commit df49092
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/home.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import React from "react";
import Salary from "./salary";
const ghUrl = "https://github.com/nexys-admin/payroll-switzerland";
const sha = import.meta.env.SNOWPACK_PUBLIC_GIT_SHA || "arandomsha";
const ghUrlSha = `${ghUrl}/commit/${sha}`;

// const sha = import.meta.env.SNOWPACK_PUBLIC_GIT_SHA || "unset_sha";
// const ghUrlSha = `${ghUrl}/commit/${sha}`;

const version = import.meta.env.SNOWPACK_PUBLIC_VERSION || "unset_version";
const ghUrlVersion= `${ghUrl}/releases/tag/${version}`;

export default () => (
<>
Expand All @@ -19,7 +23,7 @@ export default () => (

<p>
<small>
<a href={ghUrlSha}>{sha.slice(0, 15)}</a>
<a href={ghUrlVersion}>{version}</a>
</small>
</p>
</>
Expand Down

0 comments on commit df49092

Please sign in to comment.