@openstack_dev/gatsby-theme-marketing-oif-core 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/gatsby-browser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ReduxWrapper from "./src/state/ReduxWrapper";
|
|
2
2
|
|
|
3
|
-
export const wrapRootElement =
|
|
3
|
+
export const wrapRootElement = ReduxWrapper;
|
|
4
4
|
|
|
5
5
|
export const onClientEntry = () => {};
|
package/package.json
CHANGED
package/src/components/Layout.js
CHANGED
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
|
+
import CssBaseline from "@mui/material/CssBaseline";
|
|
4
|
+
import { ThemeProvider } from "@mui/material/styles";
|
|
3
5
|
import Footer from "./Footer";
|
|
4
6
|
import SponsoredProjectsNav from "./SponsoredProjectsNav";
|
|
5
7
|
import SubscribeForm from "./SubscribeForm";
|
|
6
8
|
import AnnouncementBanner from "./AnnouncementBanner";
|
|
7
9
|
import Header from "./Header";
|
|
8
10
|
import Navbar from "./Navbar";
|
|
11
|
+
import theme from "../theme";
|
|
9
12
|
|
|
10
13
|
function Layout({ children }) {
|
|
11
14
|
return (
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
<Navbar />
|
|
15
|
+
<ThemeProvider theme={theme}>
|
|
16
|
+
<CssBaseline />
|
|
15
17
|
<div>
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
<SponsoredProjectsNav />
|
|
19
|
+
<Navbar />
|
|
20
|
+
<div>
|
|
21
|
+
<Header />
|
|
22
|
+
<AnnouncementBanner />
|
|
23
|
+
<main id="content-wrapper">
|
|
24
|
+
{children}
|
|
25
|
+
<SubscribeForm />
|
|
26
|
+
</main>
|
|
27
|
+
<Footer />
|
|
28
|
+
</div>
|
|
23
29
|
</div>
|
|
24
|
-
</
|
|
30
|
+
</ThemeProvider>
|
|
25
31
|
);
|
|
26
32
|
}
|
|
27
33
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "staticJsonFilesBuildTime": [], "lastBuild":
|
|
1
|
+
{ "staticJsonFilesBuildTime": [], "lastBuild": 1713848863370 }
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { Provider } from "react-redux";
|
|
3
3
|
import { PersistGate } from "redux-persist/integration/react";
|
|
4
|
-
import { ThemeProvider } from "@mui/material/styles";
|
|
5
|
-
import CssBaseline from "@mui/material/CssBaseline";
|
|
6
4
|
import { store, persistor } from "./store";
|
|
7
|
-
import theme from "../theme";
|
|
8
5
|
|
|
9
6
|
const onBeforeLift = () => {
|
|
10
7
|
const params = new URLSearchParams(window.location.search);
|
|
@@ -25,17 +22,4 @@ function ReduxWrapper({ element }) {
|
|
|
25
22
|
);
|
|
26
23
|
}
|
|
27
24
|
|
|
28
|
-
export function ReduxWrapperWithTheme({ element }) {
|
|
29
|
-
return (
|
|
30
|
-
<Provider store={store}>
|
|
31
|
-
<PersistGate onBeforeLift={onBeforeLift} persistor={persistor}>
|
|
32
|
-
<ThemeProvider theme={theme}>
|
|
33
|
-
<CssBaseline />
|
|
34
|
-
{() => element}
|
|
35
|
-
</ThemeProvider>
|
|
36
|
-
</PersistGate>
|
|
37
|
-
</Provider>
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
25
|
export default ReduxWrapper;
|