Show app version on login
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"private": true,
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -392,6 +392,7 @@ select {
|
||||
.auth-link { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray-500); }
|
||||
.auth-link a { color: var(--primary); font-weight: 600; text-decoration: none; }
|
||||
.auth-link a:hover { text-decoration: underline; }
|
||||
.auth-version { text-align: center; margin-top: 10px; font-size: 12px; color: var(--gray-400); }
|
||||
.auth-download-btn {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import { useAuth } from '../../contexts/AuthContext';
|
||||
import { Download, PenTool } from 'lucide-react';
|
||||
import toast from 'react-hot-toast';
|
||||
import { SESSION_EXPIRED_MESSAGE, translateApiError } from '../../utils/session';
|
||||
import packageInfo from '../../../package.json';
|
||||
|
||||
export default function LoginPage() {
|
||||
const { login } = useAuth();
|
||||
@@ -83,6 +84,7 @@ export default function LoginPage() {
|
||||
<p className="auth-link">
|
||||
¿No tienes cuenta? <Link to="/register">Registrarse</Link>
|
||||
</p>
|
||||
<p className="auth-version">Versión {packageInfo.version}</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user