diff --git a/src/app/features/settings/about/About.tsx b/src/app/features/settings/about/About.tsx index dcacf1b..a5f2209 100644 --- a/src/app/features/settings/about/About.tsx +++ b/src/app/features/settings/about/About.tsx @@ -54,7 +54,7 @@ export function About({ requestClose }: AboutProps) { Paarrot v{version} - Yet another matrix client. + Squawk to yer mateys! diff --git a/src/app/pages/client/WelcomePage.tsx b/src/app/pages/client/WelcomePage.tsx index cf401ae..8f731b0 100644 --- a/src/app/pages/client/WelcomePage.tsx +++ b/src/app/pages/client/WelcomePage.tsx @@ -1,9 +1,15 @@ -import React from 'react'; +import React, { useEffect, useState } from 'react'; import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds'; import { Page, PageHero, PageHeroSection } from '../../components/page'; import PaarrotSVG from '../../../../public/res/svg/paarrot.svg'; +import { getVersion } from '@tauri-apps/api/app'; export function WelcomePage() { + const [version, setVersion] = useState(''); + + useEffect(() => { + getVersion().then(setVersion).catch(() => setVersion('')); + }, []); return ( - Yet another matrix client.{' '} - - v4.10.2 - + Squawk to yer mateys!{' '} + {version && ( + + v{version} + + )} } >