Skip to content

Commit 99f0fdb

Browse files
committed
theme and config
1 parent 102a63d commit 99f0fdb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

client/src/App.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
import {
22
MetabaseProvider,
33
InteractiveQuestion,
4+
defineEmbeddingSdkTheme,
5+
defineEmbeddingSdkConfig
46
} from "@metabase/embedding-sdk-react";
57

68
// Configuration
7-
const config = {
9+
const config = defineEmbeddingSdkConfig({
810
metabaseInstanceUrl: import.meta.env.VITE_METABASE_INSTANCE_URL,
911
jwtProviderUri: import.meta.env.VITE_JWT_PROVIDER_URI,
10-
};
12+
});
1113

1214
const questionId = 14;
1315

14-
const theme = {
16+
const theme = defineEmbeddingSdkTheme({
1517
// Specify a font to use from the set of fonts supported by Metabase.
1618
// You can set the font to "Custom" to use the custom font
1719
// configured in your Metabase instance.
@@ -57,7 +59,7 @@ const theme = {
5759
},
5860
},
5961
},
60-
};
62+
});
6163

6264
function App() {
6365
return (

0 commit comments

Comments
 (0)