Skip to content
Snippets Groups Projects
Commit 189f0f3f authored by Jose Manuel Serrano Amaut's avatar Jose Manuel Serrano Amaut
Browse files

[WIP][FEAT]: Testing context and amissing to add new page for...

[WIP][FEAT]: Testing context and amissing to add new page for globals(section1=darkmode, section2=customfileicons) A. ALso add type IconsMap
parent 4826ce8b
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import { ThemeProvider } from "@emotion/react";
import { MUItheme } from "../../theme/mainTheme";
import { FuiAction } from "../types/FuiAction";
import { FilesUiProvider } from "../../files-ui";
import gradle from "../../static/new-icons/gradle.jpg";
export const UserProvider = (props: {
children: React.ReactNode;
valorInicial: UserFilesUi;
......@@ -24,7 +24,16 @@ export const UserProvider = (props: {
return (
<UserContext.Provider value={[usuario, dispatch]}>
<ThemeProvider theme={MUItheme(usuario.darkMode ? "dark" : "light")}>
<FilesUiProvider config={{ darkMode: usuario.darkMode }}>
<FilesUiProvider
config={{
darkMode: usuario.darkMode,
icons: {
png: gradle,
mp4: "/serverside/springbootjavalogo.png",
pdf: "https://www.iconpacks.net/icons/2/free-pdf-download-icon-2617-thumb.png",
},
}}
>
{children}
</FilesUiProvider>
</ThemeProvider>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment