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
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
python-version: '3.11'
|
||||
cache: 'pip'
|
||||
cache-dependency-path: backend/requirements.txt
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user