Skip to content

Commit

Permalink
Merge pull request #155 from bosonprotocol/upgrade-react-kit9
Browse files Browse the repository at this point in the history
chore: upgrade react-kit
  • Loading branch information
albertfolch-redeemeum authored Jun 7, 2024
2 parents e327f5a + d44b295 commit ec05de1
Show file tree
Hide file tree
Showing 7 changed files with 539 additions and 34 deletions.
557 changes: 527 additions & 30 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
]
},
"dependencies": {
"@bosonprotocol/react-kit": "^0.31.1",
"@bosonprotocol/react-kit": "^0.32.0-alpha.5",
"@krakenjs/zoid": "^10.3.3",
"@svgr/webpack": "^8.1.0",
"@testing-library/jest-dom": "^5.16.5",
Expand Down
2 changes: 2 additions & 0 deletions src/components/widgets/commit/Commit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export function Commit() {
<>
<GlobalStyle $bodyOverflow={bodyOverflow} />
<CommitWidget
withCustomReduxContext={false}
withWeb3React={false}
withExternalSigner={withExternalSigner === "true"}
configId={configId}
forcedAccount={account}
Expand Down
4 changes: 2 additions & 2 deletions src/components/widgets/commit/CommitDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ import { commitPath } from "./Commit";
export function CommitDisplay() {
const commitQPobj = {
configId: getEnvConfigs(CONFIG.envName)[0].configId,
offerId: "100",
offerId: "8",
lookAndFeel: "modal",
modalMargin: "2%"
};
const commitQP = new URLSearchParams(Object.entries(commitQPobj)).toString();
const title = "Commit widget";
const width = "100%";
const height = "400px";
const height = "800px";
const iframeText = `<iframe width="${width}" height="${height}" src="${`/#${commitPath}?${decodeURIComponent(
commitQP
)}`}" title="${title}" />`;
Expand Down
3 changes: 3 additions & 0 deletions src/components/widgets/finance/Finance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export function Finance() {
}
return (
<FinanceWidget
withReduxProvider={true}
withCustomReduxContext={false}
withWeb3React={false}
sellerId={sellerId}
withExternalSigner={withExternalSigner === "true"}
configId={configId}
Expand Down
3 changes: 3 additions & 0 deletions src/components/widgets/redeem/Redeem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ export function Redeem() {

return (
<RedemptionWidget
withReduxProvider={true}
withCustomReduxContext={false}
withWeb3React={false}
withExternalSigner={withExternalSigner === "true"}
showRedemptionOverview={showRedemptionOverview}
sendDeliveryInfoThroughXMTP={sendDeliveryInfoThroughXMTP}
Expand Down
2 changes: 1 addition & 1 deletion src/components/widgets/redeem/RedeemDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function RedeemDisplay() {
const redeemQP = new URLSearchParams(Object.entries(redeemQPobj)).toString();
const title = "Redeem widget";
const width = "100%";
const height = "400px";
const height = "800px";
const iframeText = `<iframe width="${width}" height="${height}" src="${`/#${redeemPath}?${decodeURIComponent(
redeemQP
)}`}" title="${title}" />`;
Expand Down

0 comments on commit ec05de1

Please sign in to comment.