fix domain connections
This commit is contained in:
@@ -5,7 +5,7 @@ import io from 'socket.io-client';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import LanguageSelector from '../components/LanguageSelector';
|
||||
|
||||
const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:3000';
|
||||
const API_URL = import.meta.env.VITE_API_URL || '';
|
||||
const socket = io(API_URL);
|
||||
|
||||
function UserDashboard({ token, username }) {
|
||||
@@ -247,7 +247,7 @@ function UserDashboard({ token, username }) {
|
||||
</div>
|
||||
<div className="flex items-center gap-3">
|
||||
<span className={`px-2 py-1 rounded text-xs font-bold ${p.status === 'APPROVED' ? 'bg-green-900 text-green-300' :
|
||||
p.status === 'DENIED' ? 'bg-red-900 text-red-300' : 'bg-yellow-900 text-yellow-300'
|
||||
p.status === 'DENIED' ? 'bg-red-900 text-red-300' : 'bg-yellow-900 text-yellow-300'
|
||||
}`}>
|
||||
{p.status === 'APPROVED' ? t('approved') : p.status === 'DENIED' ? t('denied') : t('pending')}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user