We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102a63d commit 99f0fdbCopy full SHA for 99f0fdb
client/src/App.jsx
@@ -1,17 +1,19 @@
1
import {
2
MetabaseProvider,
3
InteractiveQuestion,
4
+ defineEmbeddingSdkTheme,
5
+ defineEmbeddingSdkConfig
6
} from "@metabase/embedding-sdk-react";
7
8
// Configuration
-const config = {
9
+const config = defineEmbeddingSdkConfig({
10
metabaseInstanceUrl: import.meta.env.VITE_METABASE_INSTANCE_URL,
11
jwtProviderUri: import.meta.env.VITE_JWT_PROVIDER_URI,
-};
12
+});
13
14
const questionId = 14;
15
-const theme = {
16
+const theme = defineEmbeddingSdkTheme({
17
// Specify a font to use from the set of fonts supported by Metabase.
18
// You can set the font to "Custom" to use the custom font
19
// configured in your Metabase instance.
@@ -57,7 +59,7 @@ const theme = {
57
59
},
58
60
61
62
63
64
function App() {
65
return (
0 commit comments