Skip to content

Commit

Permalink
fix: show version in footer (#21)
Browse files Browse the repository at this point in the history
* feat: display version only if file found
  • Loading branch information
aspnxdd authored Jul 25, 2022
1 parent 082d3f4 commit 2450588
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Header } from "components/Layout";
import { Table } from "components/Table";
import { Box, StyledOcticon, Text } from "@primer/react";
import { HeartFillIcon } from "@primer/octicons-react";
import { version } from "../version.json";

const Home: NextPage = () => {
return (
<>
Expand Down Expand Up @@ -44,9 +46,9 @@ const Home: NextPage = () => {
width: "100vw",
marginTop: "2rem",
marginBottom: "2rem",
position:"fixed",
bottom:"0",
left:0
position: "fixed",
bottom: "0",
left: 0,
}}
>
<Text color="primary">
Expand All @@ -58,6 +60,7 @@ const Home: NextPage = () => {
</a>
, SL.
</Text>
{version && <Text color="primary">Version: {version}</Text>}
</footer>
</Box>
</>
Expand Down

0 comments on commit 2450588

Please sign in to comment.