add: if player online when display marketplace in TopBar

This commit is contained in:
2025-07-19 02:07:34 +05:00
parent 56da7c7543
commit c39a8bc43c
5 changed files with 192 additions and 5 deletions

View File

@ -16,6 +16,7 @@ import { Notifier } from './components/Notifier';
import { VersionsExplorer } from './pages/VersionsExplorer';
import Profile from './pages/Profile';
import Shop from './pages/Shop';
import Marketplace from './pages/Marketplace';
const AuthCheck = ({ children }: { children: ReactNode }) => {
const [isAuthenticated, setIsAuthenticated] = useState<boolean | null>(null);
@ -158,6 +159,14 @@ const App = () => {
</AuthCheck>
}
/>
<Route
path="/marketplace"
element={
<AuthCheck>
<Marketplace />
</AuthCheck>
}
/>
</Routes>
</Box>
</Router>