feat: display client version on settings page

Shows the @actual-app/web package version as static text on the Settings
component.
This commit is contained in:
Arthur E. Jones 2022-07-01 15:03:08 -05:00 committed by James Long
parent 33ca432ea6
commit 4a49533aba

View file

@ -24,6 +24,8 @@ import ExpandArrow from 'loot-design/src/svg/ExpandArrow';
import ExclamationSolid from 'loot-design/src/svg/v1/ExclamationSolid'; import ExclamationSolid from 'loot-design/src/svg/v1/ExclamationSolid';
import Platform from 'loot-core/src/client/platform'; import Platform from 'loot-core/src/client/platform';
import { version } from '../../package.json'
let dateFormats = [ let dateFormats = [
{ value: 'MM/dd/yyyy', label: 'MM/DD/YYYY' }, { value: 'MM/dd/yyyy', label: 'MM/DD/YYYY' },
{ value: 'dd/MM/yyyy', label: 'DD/MM/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}/file`} name="File" first={true} />
<SettingsLink to={`${match.path}/global`} name="Global" last={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>
<View <View