1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 05:09:43 +02:00

feat: Display version in UI

Closes #153
This commit is contained in:
Maksim Eltyshev 2023-01-10 16:32:20 +01:00
parent 38be036089
commit a35f26f607
5 changed files with 17 additions and 6 deletions

View file

@ -1,17 +1,22 @@
import React from 'react';
// import { useTranslation } from 'react-i18next';
import { useTranslation } from 'react-i18next';
import { Image, Tab } from 'semantic-ui-react';
import Config from '../../constants/Config';
import logo from '../../assets/images/logo.png';
import styles from './AboutPane.module.scss';
const AboutPane = React.memo(() => {
// const [t] = useTranslation();
const [t] = useTranslation();
return (
<Tab.Pane attached={false} className={styles.wrapper}>
<Image centered src={logo} size="large" className={styles.logo} />
<Image centered src={logo} size="large" />
<div className={styles.version}>
{t('common.version')} {Config.VERSION}
</div>
</Tab.Pane>
);
});