mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-26 00:03:55 -05:00
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:
committed by
James Long
parent
33ca432ea6
commit
4a49533aba
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user