diff --git a/cgra-theming/src/routes/Home.js b/cgra-theming/src/routes/Home.js index eef4eada..8edeb47d 100644 --- a/cgra-theming/src/routes/Home.js +++ b/cgra-theming/src/routes/Home.js @@ -1,29 +1,34 @@ import React from "react"; import { InsightView } from "@gooddata/sdk-ui-ext"; -import { ThemeProvider, useThemeIsLoading } from "@gooddata/sdk-ui-theme-provider"; +import { ThemeProvider, useTheme, useThemeIsLoading } from "@gooddata/sdk-ui-theme-provider"; import Page from "../components/Page"; import customTheme from "../customTheme"; +const ThemedHome = () => ( + + + +); + const Home = () => { const themeIsLoading = useThemeIsLoading(); + const theme = useTheme(); if (themeIsLoading) { - return

…

; + return

Loading theme resources…

; } return ( - -
- -
- {/* line below renders a column chart create in analytical designer */} - -
-
-
-
+
+ +
+ {/* line below renders a column chart create in analytical designer */} + +
+
+
); }; -export default Home; +export default ThemedHome;