From 0415ade90612f719ca08987db4c52c29767ad051 Mon Sep 17 00:00:00 2001 From: Proddy Date: Tue, 11 Jul 2023 21:14:19 +0200 Subject: [PATCH] show version on signin --- interface/src/SignIn.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interface/src/SignIn.tsx b/interface/src/SignIn.tsx index 355466201..e0fa88551 100644 --- a/interface/src/SignIn.tsx +++ b/interface/src/SignIn.tsx @@ -3,6 +3,7 @@ import { Box, Fab, Paper, Typography, Button } from '@mui/material'; import { useRequest } from 'alova'; import { useContext, useState } from 'react'; import { toast } from 'react-toastify'; +import { FeaturesContext } from './contexts/features'; import type { ValidateFieldsError } from 'async-validator'; import type { Locales } from 'i18n/i18n-types'; @@ -33,6 +34,8 @@ const SignIn: FC = () => { const { LL, setLocale, locale } = useContext(I18nContext); + const { features } = useContext(FeaturesContext); + const [signInRequest, setSignInRequest] = useState({ username: '', password: '' @@ -107,6 +110,7 @@ const SignIn: FC = () => { })} > {PROJECT_NAME} + {features.version}