Aurora SpotiRip desktop and web app
- Spotify playlist, library, album and artist browsing with in-app playback - Song, playlist and album downloads via spotdl with YouTube and Bandcamp fallbacks - Electron desktop app (castLabs Widevine) with a permanent sidebar layout - Linux and Windows packaging scripts
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { ReactNode } from "react";
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { ThemeModeProvider } from "../helpers/themeMode";
|
||||
import { TooltipProvider } from "./Tooltip";
|
||||
import { SonnerToaster } from "./SonnerToaster";
|
||||
import { ScrollToHashElement } from "./ScrollToHashElement";
|
||||
|
||||
const queryClient = new QueryClient({
|
||||
defaultOptions: {
|
||||
queries: {
|
||||
staleTime: 60 * 1000,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const GlobalContextProviders = ({
|
||||
children,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
}) => {
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
<ThemeModeProvider>
|
||||
<ScrollToHashElement />
|
||||
<TooltipProvider>
|
||||
{children}
|
||||
<SonnerToaster />
|
||||
</TooltipProvider>
|
||||
</ThemeModeProvider>
|
||||
</QueryClientProvider>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user