chore(web): hide api live indicator
This commit is contained in:
1 parent
6e0afe84cd
commit
245a096606
1 file changed
+22
-22
+22
-22
@@ -1,22 +1,22 @@
|
|||||||
import { BrowserRouter, Link, Route, Routes } from 'react-router';
|
import { BrowserRouter, Link, Route, Routes } from "react-router";
|
||||||
import { useMsal } from '@azure/msal-react';
|
import { useMsal } from "@azure/msal-react";
|
||||||
import DevAuthSwitcher from './components/DevAuthSwitcher';
|
import DevAuthSwitcher from "./components/DevAuthSwitcher";
|
||||||
import { DEFAULT_COMMUNITY_ID } from './config';
|
import { DEFAULT_COMMUNITY_ID } from "./config";
|
||||||
import { useCommunity } from './api/hooks';
|
import { useCommunity } from "./api/hooks";
|
||||||
import { isMsalConfigured } from './lib/auth/msal.config';
|
import { isMsalConfigured } from "./lib/auth/msal.config";
|
||||||
import AuthCallbackPage from './pages/AuthCallback';
|
import AuthCallbackPage from "./pages/AuthCallback";
|
||||||
import HomePage from './pages/HomePage';
|
import HomePage from "./pages/HomePage";
|
||||||
import LoginPage from './pages/Login';
|
import LoginPage from "./pages/Login";
|
||||||
import MatchDetailPage from './pages/MatchDetailPage';
|
import MatchDetailPage from "./pages/MatchDetailPage";
|
||||||
import MatchTeamProgressPage from './pages/MatchTeamProgressPage';
|
import MatchTeamProgressPage from "./pages/MatchTeamProgressPage";
|
||||||
import AuctionPage from './pages/AuctionPage';
|
import AuctionPage from "./pages/AuctionPage";
|
||||||
import UserHistoryPage from './pages/UserHistoryPage';
|
import UserHistoryPage from "./pages/UserHistoryPage";
|
||||||
import CommunityInternalStatsPage from './pages/CommunityInternalStatsPage';
|
import CommunityInternalStatsPage from "./pages/CommunityInternalStatsPage";
|
||||||
import InternalMatchDetailPage from './pages/InternalMatchDetailPage';
|
import InternalMatchDetailPage from "./pages/InternalMatchDetailPage";
|
||||||
import LegacyImportPage from './pages/admin/LegacyImportPage';
|
import LegacyImportPage from "./pages/admin/LegacyImportPage";
|
||||||
import LegacyMatchesPage from './pages/admin/LegacyMatchesPage';
|
import LegacyMatchesPage from "./pages/admin/LegacyMatchesPage";
|
||||||
import MatchAdminPage from './pages/admin/MatchAdminPage';
|
import MatchAdminPage from "./pages/admin/MatchAdminPage";
|
||||||
import TournamentCodesPage from './pages/admin/TournamentCodesPage';
|
import TournamentCodesPage from "./pages/admin/TournamentCodesPage";
|
||||||
|
|
||||||
function MsalHeaderActions() {
|
function MsalHeaderActions() {
|
||||||
const { accounts, instance } = useMsal();
|
const { accounts, instance } = useMsal();
|
||||||
@@ -43,7 +43,7 @@ function MsalHeaderActions() {
|
|||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
const communityQuery = useCommunity(DEFAULT_COMMUNITY_ID);
|
const communityQuery = useCommunity(DEFAULT_COMMUNITY_ID);
|
||||||
const communityLabel = communityQuery.data?.name ?? 'LOLYMPUS';
|
const communityLabel = communityQuery.data?.name ?? "LOLYMPUS";
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
@@ -57,7 +57,7 @@ function App() {
|
|||||||
{communityLabel}
|
{communityLabel}
|
||||||
</Link>
|
</Link>
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
{DEFAULT_COMMUNITY_ID ? (
|
{/* {DEFAULT_COMMUNITY_ID ? (
|
||||||
<span className="text-[10px] uppercase tracking-wider text-base-content/25">
|
<span className="text-[10px] uppercase tracking-wider text-base-content/25">
|
||||||
API Live
|
API Live
|
||||||
</span>
|
</span>
|
||||||
@@ -65,7 +65,7 @@ function App() {
|
|||||||
<span className="text-[10px] uppercase tracking-wider text-amber-500/70">
|
<span className="text-[10px] uppercase tracking-wider text-amber-500/70">
|
||||||
Set `VITE_DEFAULT_COMMUNITY_ID`
|
Set `VITE_DEFAULT_COMMUNITY_ID`
|
||||||
</span>
|
</span>
|
||||||
)}
|
)} */}
|
||||||
{isMsalConfigured && <MsalHeaderActions />}
|
{isMsalConfigured && <MsalHeaderActions />}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user