Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions widget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
defaultConfig,
SystemConfig,
EnvironmentProvider,
chakra,
} from "@chakra-ui/react";
import { Address } from "viem";
import { WagmiContext } from "wagmi";
Expand Down Expand Up @@ -34,6 +35,8 @@ type WidgetProps = WidgetComponentProps & {

const varRoot = ":host";

const Root = chakra(root.div);

const Widget = ({
apiKey,
tokenOut,
Expand Down Expand Up @@ -123,10 +126,10 @@ const Widget = ({
}, []);

return (
<root.div
<Root
ref={setShadow}
borderRadius="xl"
style={{
borderRadius: "0.75rem",
boxShadow: "0 4px 6px rgba(0, 0, 0, 0.1)",
}}
>
Expand Down Expand Up @@ -157,7 +160,7 @@ const Widget = ({
</CacheProvider>
</EnvironmentProvider>
)}
</root.div>
</Root>
);
};

Expand Down