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:
parent
33ca432ea6
commit
4a49533aba
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue