@@ -5,6 +5,8 @@ import { LiFiWidget, WidgetConfig } from "@lifi/widget";
55
66import { responsiveSize } from "styles/responsiveSize" ;
77
8+ import { WalletProvider } from "./WalletProvider" ;
9+
810const WidgetContainer = styled . div `
911 width: 100%;
1012 > div {
@@ -19,18 +21,18 @@ const getWidgetConfig = (theme: Theme): WidgetConfig => ({
1921 toChain : 42161 ,
2022 fromToken : "0x93ED3FBe21207Ec2E8f2d3c3de6e058Cb73Bc04d" ,
2123 toToken : "0x330bD769382cFc6d50175903434CCC8D206DCAE5" ,
22- containerStyle : {
23- border : `1px solid ${ theme . stroke } ` ,
24- borderRadius : "3px" ,
25- background : theme . whiteBackground ,
26- width : responsiveSize ( 350 , 500 ) ,
27- maxWidth : "600px" ,
28- height : "fit-content" ,
29- maxHeight : "none" ,
30- minWidth : "300px" ,
31- } ,
3224 hiddenUI : [ "appearance" , "language" ] ,
3325 theme : {
26+ container : {
27+ border : `1px solid ${ theme . stroke } ` ,
28+ borderRadius : "3px" ,
29+ background : theme . whiteBackground ,
30+ width : responsiveSize ( 350 , 500 ) ,
31+ maxWidth : "600px" ,
32+ height : "fit-content" ,
33+ maxHeight : "none" ,
34+ minWidth : "300px" ,
35+ } ,
3436 palette : {
3537 primary : {
3638 main : theme . primaryBlue ,
@@ -40,7 +42,7 @@ const getWidgetConfig = (theme: Theme): WidgetConfig => ({
4042 } ,
4143 background : {
4244 paper : theme . whiteBackground , // bg color for cards
43- default : theme . whiteBackground , // bg color container
45+ default : theme . lightBackground , // bg color container
4446 } ,
4547 grey : {
4648 300 : theme . stroke , // border light theme
@@ -50,6 +52,21 @@ const getWidgetConfig = (theme: Theme): WidgetConfig => ({
5052 primary : theme . primaryText ,
5153 secondary : theme . secondaryText ,
5254 } ,
55+ common : {
56+ white : theme . primaryText ,
57+ } ,
58+ warning : {
59+ main : theme . warning ,
60+ } ,
61+ error : {
62+ main : theme . error ,
63+ } ,
64+ info : {
65+ main : theme . primaryBlue ,
66+ } ,
67+ success : {
68+ main : theme . success ,
69+ } ,
5370 } ,
5471 shape : {
5572 borderRadius : 3 ,
@@ -68,8 +85,10 @@ export const Widget = () => {
6885 const widgetConfig = useMemo ( ( ) => getWidgetConfig ( theme ) , [ theme ] ) ;
6986
7087 return (
71- < WidgetContainer >
72- < LiFiWidget config = { widgetConfig } integrator = "Kleros" />
73- </ WidgetContainer >
88+ < WalletProvider >
89+ < WidgetContainer >
90+ < LiFiWidget config = { widgetConfig } integrator = "Kleros" />
91+ </ WidgetContainer >
92+ </ WalletProvider >
7493 ) ;
7594} ;
0 commit comments