File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11import {
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
1214const 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
6264function App ( ) {
6365 return (
You can’t perform that action at this time.
0 commit comments