From 4a49533abaffbd3da27f9cb982e6c70a78743e33 Mon Sep 17 00:00:00 2001
From: "Arthur E. Jones" <PartyLich@gmail.com>
Date: Fri, 1 Jul 2022 15:03:08 -0500
Subject: [PATCH] feat: display client version on settings page

Shows the @actual-app/web package version as static text on the Settings
component.
---
 packages/desktop-client/src/components/Settings.js | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/packages/desktop-client/src/components/Settings.js b/packages/desktop-client/src/components/Settings.js
index c3630b495..44b7f0170 100644
--- a/packages/desktop-client/src/components/Settings.js
+++ b/packages/desktop-client/src/components/Settings.js
@@ -24,6 +24,8 @@ import ExpandArrow from 'loot-design/src/svg/ExpandArrow';
 import ExclamationSolid from 'loot-design/src/svg/v1/ExclamationSolid';
 import Platform from 'loot-core/src/client/platform';
 
+import { version } from '../../package.json'
+
 let dateFormats = [
   { value: 'MM/dd/yyyy', label: 'MM/DD/YYYY' },
   { value: 'dd/MM/yyyy', label: 'DD/MM/YYYY' },
@@ -501,6 +503,15 @@ class Settings extends React.Component {
         >
           <SettingsLink to={`${match.path}/file`} name="File" first={true} />
           <SettingsLink to={`${match.path}/global`} name="Global" last={true} />
+          <Text style={[
+                  {
+                    alignSelf: 'center',
+                    padding: '6px 10px',
+                  },
+                  styles.staticText,
+                  styles.smallText,
+                ]}
+            >v{ version }</Text>
         </View>
 
         <View
-- 
GitLab