Skip to content

Commit

Permalink
Add app version and data-catalog-components version to about page (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
brdunfield authored Dec 4, 2023
1 parent 22927d8 commit 5ae9994
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@civicactions/data-catalog-app",
"version": "1.4.0",
"version": "1.4.1",
"private": false,
"homepage": "frontend/build",
"dependencies": {
Expand Down
12 changes: 10 additions & 2 deletions src/templates/about/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import React from "react";
import { Announcement } from "@civicactions/data-catalog-components";
import Layout from '../../components/Layout';
import config from "../../assets/config";
import { version, dependencies } from '../../../package.json';

const About = ({ path }) => (
const About = () => (
<Layout title="About">
<div className={`dc-page ${config.container}`}>
<h1>About this site</h1>
<div className="dc-page-content row">
<div class="col-md-9 col-sm-12">
<div className="col-md-9 col-sm-12">
<p>This is the default state of the DKAN data catalog.</p>
<p>
This tool helps create open data catalogs using React and other
Expand All @@ -21,6 +22,13 @@ const About = ({ path }) => (
</Announcement>
</div>
</div>
<div className="dc-page-content row">
<h2>App version:</h2>
<div className="col-12">
<p>data-catalog-app: {version}</p>
<p>data-catalog-components: {dependencies["@civicactions/data-catalog-components"]}</p>
</div>
</div>
</div>
</Layout>
);
Expand Down

0 comments on commit 5ae9994

Please sign in to comment.