Skip to content

Commit

Permalink
update stake widget to 0.0.102
Browse files Browse the repository at this point in the history
  • Loading branch information
compojoom committed Feb 23, 2024
1 parent c263da0 commit 97fecbc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 41 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@safe-global/safe-modules-deployments": "^1.2.0",
"@sentry/react": "^7.91.0",
"@spindl-xyz/attribution-lite": "^1.4.0",
"@stakekit/widget": "^0.0.100",
"@stakekit/widget": "^0.0.102",
"@tkey-mpc/common-types": "^8.2.2",
"@truffle/hdwallet-provider": "^2.1.4",
"@vanilla-extract/next-plugin": "^2.3.6",
Expand Down
36 changes: 1 addition & 35 deletions src/components/stake/Widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,7 @@ import { SKApp, darkTheme } from "@stakekit/widget"
export const Widget = () => {
return (
<>
<SKApp
apiKey={"api-key-here"}
theme={{
...darkTheme,
color: {
...darkTheme.color,
background: "rgba(0, 0, 0, 0.83)",
modalBodyBackground: "#121415",
selectValidatorMultiDefaultBackground: "#121415",
positionsSectionBackgroundColor: "#121415",
positionsSectionBorderColor: "#121415",

secondaryButtonBackground: "#FFFFFF0D",
secondaryButtonOutline: "#FFFFFF0D",

secondaryButtonActiveBackground: "#ffffff1a",
secondaryButtonActiveOutline: "#ffffff1a",
secondaryButtonActiveColor: "#EEF0F2",

secondaryButtonHoverBackground: "#ffffff1a",
secondaryButtonHoverOutline: "#ffffff1a",
secondaryButtonHoverColor: "#EEF0F2",

stakeSectionBackground: "#FFFFFF0D",
backgroundMuted: "#FFFFFF0D",
tokenSelectBackground: "#FFFFFF0D",
positionsSectionDividerColor: "#FFFFFF0D",
tokenSelectHoverBackground: "#ffffff1a",

skeletonLoaderBase: "#FFFFFF0D",
skeletonLoaderHighlight: "#2B2B2B",
},
}}
connectKitForceTheme="darkMode"
/>
<SKApp apiKey="api-key-here" theme={darkTheme} connectKitForceTheme="darkMode" />
</>
)
}
1 change: 0 additions & 1 deletion src/pages/stake.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
"use client";
import type { NextPage } from 'next'
import Head from 'next/head'
import { Widget } from '@/components/stake/Widget'
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5745,10 +5745,10 @@
react-remove-scroll "2.5.4"
ua-parser-js "^1.0.35"

"@stakekit/widget@^0.0.100":
version "0.0.100"
resolved "https://registry.yarnpkg.com/@stakekit/widget/-/widget-0.0.100.tgz#e9bc8035161f07af43ba140737554bbf46d91c47"
integrity sha512-knhB5Ax6xVOcw8liF8DsiG5pkO5fb8LBQirBMqJvmH2hbWZmpHP0gdqbliKzoqNhUQsdDWqwuaWh+ylpIQWWjg==
"@stakekit/widget@^0.0.102":
version "0.0.102"
resolved "https://registry.yarnpkg.com/@stakekit/widget/-/widget-0.0.102.tgz#199a94fc8c7d19ad5b8105e21ce44cc5f5d387a7"
integrity sha512-3JPWptNm6djR5iBEPFpz2V0tOMlA2Oj5v/v7qo3OZOS3fZtoD6+EoGTVhbDbSW/hHCuEPu3Bbk/AxdSQlrT3nw==
dependencies:
"@cassiozen/usestatemachine" "^1.0.1"
"@cosmjs/amino" "^0.32.2"
Expand Down

0 comments on commit 97fecbc

Please sign in to comment.