Skip to content

Commit

Permalink
Update AddProduct.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
hammad-ali18 authored Aug 15, 2024
1 parent 6c1ca39 commit 8ea5aa3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions identeefi-frontend-react/src/components/pages/AddProduct.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ const AddProduct = () => {
maxRedirects: 0,
headers: {
'Content-Type': 'multipart/form-data',
pinata_api_key: 'fa2b19b73212285f0b63',
pinata_secret_api_key: '3eb7e681c6a2bf3ce1f032102cae6842a0a77dccde1afdc198dc375b3993e393'
pinata_api_key: '',
pinata_secret_api_key: ''
}
});
return `https://aquamarine-accessible-takin-121.mypinata.cloud/ipfs/${resFile.data.IpfsHash}`;
Expand All @@ -215,8 +215,8 @@ const AddProduct = () => {
const formData = new FormData();
formData.append('file', jsonBlob, 'metadata.json');

const API_KEY = 'fa2b19b73212285f0b63';
const API_SECRET = '3eb7e681c6a2bf3ce1f032102cae6842a0a77dccde1afdc198dc375b3993e393';
const API_KEY = '';
const API_SECRET = '';

const url = `https://api.pinata.cloud/pinning/pinFileToIPFS`;

Expand Down Expand Up @@ -578,4 +578,4 @@ const AddProduct = () => {
);
}

export default AddProduct;
export default AddProduct;

0 comments on commit 8ea5aa3

Please sign in to comment.