mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
fixed frontend build errors and improved action compatibility
This commit is contained in:
1 parent
2882d3956e
commit
2bf68674ff
2 files changed
+10
-2
No files matched your search
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.11'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
cache-dependency-path: backend/requirements.txt
|
cache-dependency-path: backend/requirements.txt
|
||||||
|
|
||||||
|
|||||||
@@ -4,11 +4,13 @@ import ArrowBackIcon from '@mui/icons-material/ArrowBack';
|
|||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import api from '../api';
|
import api from '../api';
|
||||||
import { useTitle } from '../hooks/useTitle';
|
import { useTitle } from '../hooks/useTitle';
|
||||||
|
import { useTranslation } from 'react-i18next';
|
||||||
|
|
||||||
interface LoginProps {
|
interface LoginProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const Login: React.FC<LoginProps> = () => {
|
const Login: React.FC<LoginProps> = () => {
|
||||||
|
const { t } = useTranslation();
|
||||||
useTitle('Login');
|
useTitle('Login');
|
||||||
const [tab, setTab] = useState(0);
|
const [tab, setTab] = useState(0);
|
||||||
const [username, setUsername] = useState('');
|
const [username, setUsername] = useState('');
|
||||||
@@ -126,7 +128,13 @@ const Login: React.FC<LoginProps> = () => {
|
|||||||
Verify
|
Verify
|
||||||
</Button>
|
</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')}
|
{t('auth.resendButton')}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user