Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade react-kit #155

Merged
merged 2 commits into from
Jun 7, 2024
Merged
Show file tree
Hide file tree
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
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
Loading