Skip to content

Commit

Permalink
Merge pull request #43 from the-standard/202410-themes
Browse files Browse the repository at this point in the history
feat: lifi widget uses dark/light
  • Loading branch information
ZakMooney authored Nov 6, 2024
2 parents 779203f + b3dfec8 commit 6afc40d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/LiFiWidget.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import { LiFiWidget as LiFi } from '@lifi/widget';

import {
useLocalThemeModeStore,
} from "../store/Store";

const projectId = import.meta.env.VITE_WALLETCONNECT_ID;

const LiFiWidget = () => {
const { localThemeModeStore } = useLocalThemeModeStore();
const isLight = localThemeModeStore && localThemeModeStore.includes('light');

const widgetConfig = {
// fromChain,
Expand All @@ -13,7 +19,7 @@ const LiFiWidget = () => {
projectId: projectId,
},
integrator: 'the-standard',
appearance: 'dark',
appearance: isLight ? 'light' : 'dark',
theme: {
container: {
border: `1px solid rgb(234, 234, 234)`,
Expand Down

0 comments on commit 6afc40d

Please sign in to comment.