Skip to content

Commit

Permalink
Upgrade RK to 1.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromcunha committed Nov 3, 2023
1 parent 1b964d0 commit d485898
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 27 deletions.
2 changes: 1 addition & 1 deletion components/portfolio/ApprovalCollapsible.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const ApprovalCollapsible: FC<Props> = ({
</Text>
</Flex>
<Flex>
{item.txHash && item.status == 'incomplete' ? (
{item.txHashes && item.status == 'incomplete' ? (
<LoadingSpinner
css={{
width: 18,
Expand Down
34 changes: 18 additions & 16 deletions context/ToastContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,22 +131,24 @@ const ToastContextProvider: FC<any> = ({ children }) => {
status: failedPurchases ? 'error' : 'success',
action: (
<Flex direction="column" css={{ gap: '$1' }}>
{currentStep.items?.map((item) => {
const txHash = item.txHash
? `${item.txHash.slice(0, 4)}...${item.txHash.slice(-4)}`
: ''
return (
<Anchor
href={`${blockExplorerBaseUrl}/tx/${item?.txHash}`}
color="primary"
weight="medium"
target="_blank"
css={{ fontSize: 12 }}
>
View transaction: {txHash}
</Anchor>
)
})}
{currentStep.items?.map((item) =>
item.txHashes?.map((txHash) => {
const formattedTxHash = txHash
? `${txHash.slice(0, 4)}...${txHash.slice(-4)}`
: ''
return (
<Anchor
href={`${blockExplorerBaseUrl}/tx/${txHash}`}
color="primary"
weight="medium"
target="_blank"
css={{ fontSize: 12 }}
>
View transaction: {formattedTxHash}
</Anchor>
)
})
)}
</Flex>
),
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@radix-ui/react-toggle-group": "^1.0.1",
"@radix-ui/react-tooltip": "1.0.6",
"@rainbow-me/rainbowkit": "^1.1.3",
"@reservoir0x/reservoir-kit-ui": "1.16.2",
"@reservoir0x/reservoir-kit-ui": "1.17.0",
"@sentry/nextjs": "^7.53.1",
"@types/uuid": "^9.0.1",
"dayjs": "^1.11.6",
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1435,10 +1435,10 @@
dependencies:
"@react-hookz/deep-equal" "^1.0.3"

"@reservoir0x/reservoir-kit-ui@1.16.2":
version "1.16.2"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.16.2.tgz#0268212a7c49ec76e50f00b5a471b65b6419d836"
integrity sha512-8eFjnZsSWijjgZFTDyPXkaWmHCTK6eu7wy7O4EEC3OaXcpPYice3vCrQjbL+w4MdcTr/Fp+AQv9yoUqKxoXNFQ==
"@reservoir0x/reservoir-kit-ui@1.17.0":
version "1.17.0"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.17.0.tgz#0348547ec77f24210222fde4247a1e71f62ab77e"
integrity sha512-rxdMNz/YqOyOhWUUaIY55nUOxEtbBClk919hXYNMTiyCCtG4y/z7e7c4NDnkakM/maTi4HXaQDmL70jpPZ5MMQ==
dependencies:
"@fortawesome/fontawesome-svg-core" "^6.1.1"
"@fortawesome/free-solid-svg-icons" "^6.1.1"
Expand All @@ -1454,18 +1454,18 @@
"@radix-ui/react-toggle-group" "1.0.4"
"@radix-ui/react-tooltip" "1.0.6"
"@react-hookz/web" "^19.2.0"
"@reservoir0x/reservoir-sdk" "1.6.1"
"@reservoir0x/reservoir-sdk" "1.7.0"
"@stitches/react" "1.3.1-1"
dayjs "^1.11.4"
flatpickr "^4.6.13"
framer-motion "^6.4.2"
react-flatpickr "^3.10.13"
swr "2.0.1"

"@reservoir0x/reservoir-sdk@1.6.1":
version "1.6.1"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.6.1.tgz#8b14b5aa2598b333df52ae889d3c3bbcedf3b0f9"
integrity sha512-qYtqbE7mSQ7MBgXLgxxT+DgBIbDDyGUtJso+5Oq98HZXdB0yAVM5eoeNEenlNJ4Vkz33OwS8BTlQbuII6QKLiQ==
"@reservoir0x/reservoir-sdk@1.7.0":
version "1.7.0"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.7.0.tgz#0b0b1b87cb30247bdb5c9b86052cfbd061fda37f"
integrity sha512-bK3bckEfG65J9zbnXB+hjqDCZp2nAq6HQPjNKJvtLY+H36S0VS99Ogbm141nw+kZFMdHGHgr/2X0ubUsxw98CA==
dependencies:
axios "^0.27.2"

Expand Down

0 comments on commit d485898

Please sign in to comment.