diff --git a/src/context/ThemeContext.jsx b/src/context/ThemeContext.jsx index 3da0771..8992e12 100644 --- a/src/context/ThemeContext.jsx +++ b/src/context/ThemeContext.jsx @@ -31,10 +31,7 @@ export const ThemeProvider = ({ children }) => { // Dzięki temu możemy korzystać z tych wartości w dowolnym miejscu w aplikacji React za pomocą hooka useTheme. return ( - {children} // wszystko co jest opakowane w ThemeProvider będzie miało dostęp do wartości theme i toggleTheme z ThemeContext - // children to specjalna props, która reprezentuje wszystkie elementy, które są opakowane w ThemeProvider - // korzystane jak rosyjska matrioszka, ale wasal mojego wasala nie jest moim wasalem - , więc nie mogę przekazać propsów do dzieci, które są opakowane w ThemeProvider, dlatego muszę użyć kontekstu React + {children} ); };