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 1
1
import {
2
2
MetabaseProvider ,
3
3
InteractiveQuestion ,
4
+ defineEmbeddingSdkTheme ,
5
+ defineEmbeddingSdkConfig
4
6
} from "@metabase/embedding-sdk-react" ;
5
7
6
8
// Configuration
7
- const config = {
9
+ const config = defineEmbeddingSdkConfig ( {
8
10
metabaseInstanceUrl : import . meta. env . VITE_METABASE_INSTANCE_URL ,
9
11
jwtProviderUri : import . meta. env . VITE_JWT_PROVIDER_URI ,
10
- } ;
12
+ } ) ;
11
13
12
14
const questionId = 14 ;
13
15
14
- const theme = {
16
+ const theme = defineEmbeddingSdkTheme ( {
15
17
// Specify a font to use from the set of fonts supported by Metabase.
16
18
// You can set the font to "Custom" to use the custom font
17
19
// configured in your Metabase instance.
@@ -57,7 +59,7 @@ const theme = {
57
59
} ,
58
60
} ,
59
61
} ,
60
- } ;
62
+ } ) ;
61
63
62
64
function App ( ) {
63
65
return (
You can’t perform that action at this time.
0 commit comments