Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
Hide link to IPFS for new app-datas (#557)
Browse files Browse the repository at this point in the history
* Set version to v1.0.0 for app-data

* Do not show the IPFS link for new IPFS app-data (not yet published)

* Remove the copy button
  • Loading branch information
anxolin authored Jul 18, 2023
1 parent b723737 commit 7afa539
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"author": "",
"dependencies": {
"@apollo/client": "^3.1.5",
"@cowprotocol/app-data": "v1.0.0-rc.4",
"@cowprotocol/app-data": "v1.0.0",
"@cowprotocol/contracts": "1.3.1",
"@cowprotocol/cow-sdk": "^2.2.1",
"@fortawesome/fontawesome-svg-core": "^6.1.2",
Expand Down
6 changes: 5 additions & 1 deletion src/components/AppData/DecodeAppData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const DecodeAppData = (props: Props): JSX.Element => {
<div className="data-container">
{appDataError ? (
<span className="app-data">{appData}</span>
) : (
) : isLegacyAppDataHex ? (
<RowWithCopyButton
textToCopy={ipfsUri}
contentsToDisplay={
Expand All @@ -139,6 +139,10 @@ const DecodeAppData = (props: Props): JSX.Element => {
</a>
}
/>
) : (
// TODO: Remove this, and leave just the LINK after the backend uploads the IPFS documents
// https://cowservices.slack.com/archives/C0375NV72SC/p1689618027267289
appData
)}
<a className="showMoreAnchor" onClick={(): Promise<void> => handleDecodedAppData(false)}>
{showDecodedAppData ? '[-] Show less' : '[+] Show more'}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1369,10 +1369,10 @@
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==

"@cowprotocol/[email protected]-rc.4":
version "1.0.0-rc.4"
resolved "https://registry.yarnpkg.com/@cowprotocol/app-data/-/app-data-1.0.0-rc.4.tgz#89badc9c30add23aaeed1dc942d0398e6e874833"
integrity sha512-lKvuvJu9tnJ41nJr9DgFMUOWofX4gCRhcDpGM+jPYqWv1UY+2CjJSkKxVbrFDS5OKjeHfDLv1Mf0XIMqmNYbkQ==
"@cowprotocol/[email protected]":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@cowprotocol/app-data/-/app-data-1.0.0.tgz#cca486f5aab6000713cc4871471a47c215c9b97e"
integrity sha512-cZYwbgFfM84916qcGxpC6hCoXpwFVpushShNEja7gti0NTHqFbGjcR0Pmyrf4D80QJJeAt9wg+TNa5xy2zCaDQ==
dependencies:
ajv "^8.11.0"
cross-fetch "^3.1.5"
Expand Down

0 comments on commit 7afa539

Please sign in to comment.