Skip to content

Commit

Permalink
added config
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb8005 committed Jan 15, 2022
1 parent d8a18a5 commit 496b336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "signature",
"version": "1.0.0",
"name": "@nexys-admin/payroll",
"version": "0.0.3",
"main": "index.js",
"license": "MIT",
"dependencies": {
Expand Down
11 changes: 3 additions & 8 deletions src/home.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
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 || "unset_sha";
// const ghUrlSha = `${ghUrl}/commit/${sha}`;

const version = import.meta.env.SNOWPACK_PUBLIC_VERSION || "unset_version";
const ghUrlVersion= `${ghUrl}/releases/tag/${version}`;
import * as C from './config'

export default () => (
<>
<h1>Payroll Switzerland</h1>

<Salary />

<br/>
<p>
<a href={ghUrl}>
<i className="fa fa-code"></i> Source
Expand All @@ -23,7 +18,7 @@ export default () => (

<p>
<small>
<a href={ghUrlVersion}>{version}</a>
<a href={C.ghUrlVersion}>{C.version}</a>
</small>
</p>
</>
Expand Down

0 comments on commit 496b336

Please sign in to comment.