fixed frontend build errors and improved action compatibility

This commit is contained in:
nvrl committed 2026-02-19 15:38:08 +01:00
1 parent 2882d3956e
commit 2bf68674ff
2 files changed
+10 -2

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.11'
cache: 'pip'
cache-dependency-path: backend/requirements.txt
+9 -1
View File
@@ -4,11 +4,13 @@ import ArrowBackIcon from '@mui/icons-material/ArrowBack';
import { Link } from 'react-router-dom';
import api from '../api';
import { useTitle } from '../hooks/useTitle';
import { useTranslation } from 'react-i18next';
interface LoginProps {
}
const Login: React.FC<LoginProps> = () => {
const { t } = useTranslation();
useTitle('Login');
const [tab, setTab] = useState(0);
const [username, setUsername] = useState('');
@@ -126,7 +128,13 @@ const Login: React.FC<LoginProps> = () => {
Verify
</Button>
<Button fullWidth variant="outlined" onClick={handleResendCode} sx={{ mt: 2, textTransform: 'none' }}>
<Button
fullWidth
variant={showResend ? "contained" : "outlined"}
color={showResend ? "secondary" : "primary"}
onClick={handleResendCode}
sx={{ mt: 2, textTransform: 'none' }}
>
{t('auth.resendButton')}
</Button>