feat(about): update tagline to "Squawk to yer mateys!" and display dynamic version number
This commit is contained in:
@@ -54,7 +54,7 @@ export function About({ requestClose }: AboutProps) {
|
||||
<Text size="H3">Paarrot</Text>
|
||||
<Text size="T200">v{version}</Text>
|
||||
</Box>
|
||||
<Text>Yet another matrix client.</Text>
|
||||
<Text>Squawk to yer mateys!</Text>
|
||||
</Box>
|
||||
|
||||
<Box gap="200" wrap="Wrap">
|
||||
|
||||
@@ -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<string>('');
|
||||
|
||||
useEffect(() => {
|
||||
getVersion().then(setVersion).catch(() => setVersion(''));
|
||||
}, []);
|
||||
return (
|
||||
<Page>
|
||||
<Box
|
||||
@@ -18,14 +24,16 @@ export function WelcomePage() {
|
||||
title="Welcome to Paarrot"
|
||||
subTitle={
|
||||
<span>
|
||||
Yet another matrix client.{' '}
|
||||
<a
|
||||
href="https://git.ruv.wtf/litruv/cinny-desktop/releases"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
v4.10.2
|
||||
</a>
|
||||
Squawk to yer mateys!{' '}
|
||||
{version && (
|
||||
<a
|
||||
href="https://git.ruv.wtf/litruv/cinny-desktop/releases"
|
||||
target="_blank"
|
||||
rel="noreferrer noopener"
|
||||
>
|
||||
v{version}
|
||||
</a>
|
||||
)}
|
||||
</span>
|
||||
}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user