Changeset 9c1dcc7 for frontend/src/App.tsx
- Timestamp:
- 02/07/26 19:52:09 (5 months ago)
- Branches:
- main
- Children:
- 8675f75
- Parents:
- 8a47b30
- File:
-
- 1 edited
-
frontend/src/App.tsx (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/App.tsx
r8a47b30 r9c1dcc7 9 9 import "react-toastify/dist/ReactToastify.css"; 10 10 import LoadingSpinner from "./components/LoadingSpinner"; 11 import MiniPlayer from "./components/MiniPlayer"; 11 12 import Sidebar from "./components/Sidebar"; 12 13 import { useAuth } from "./context/authContext"; 14 import { usePlayer } from "./context/playerContext"; 13 15 import AllUsers from "./pages/AllUsers"; 14 16 import LandingPage from "./pages/LandingPage"; … … 22 24 const MainLayout = () => { 23 25 const { user } = useAuth(); 26 const { currentSong } = usePlayer(); 24 27 const location = useLocation(); 25 28 // show sidebar only if user is logged in and is on the landing page … … 56 59 className={`grow transition-all duration-300 pt-20 ${ 57 60 isSidebarOpen ? "ml-64" : "ml-0" 58 } `}61 } ${currentSong ? "pb-20" : ""}`} 59 62 > 60 63 <Outlet /> 61 64 </main> 65 <MiniPlayer /> 62 66 </div> 63 67 );
Note:
See TracChangeset
for help on using the changeset viewer.
