mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
committing partial rollback of next.js upgragde for external validation 🦃
This commit is contained in:
committed by
Alec LaLonde
parent
1cfa0e6020
commit
09af70247d
@@ -76,7 +76,7 @@
|
||||
"react": "16.14.0",
|
||||
"react-dom": "16.14.0",
|
||||
"tsdx": "0.14.1",
|
||||
"typescript": "4.3.5",
|
||||
"typescript": "^4.4.2",
|
||||
"wait-on": "5.3.0"
|
||||
},
|
||||
"resolutions": {
|
||||
|
||||
@@ -28,7 +28,29 @@ const InfoPage: React.FunctionComponent = () => {
|
||||
formState: { errors, isSubmitting },
|
||||
setValue,
|
||||
} = useForm();
|
||||
const { ceramic, idx, address } = useWeb3();
|
||||
const { ceramic, idx, address, storageClient } = useWeb3();
|
||||
console.log(did);
|
||||
|
||||
const handleFileUpload = useCallback(
|
||||
(event: any) => {
|
||||
console.log(event.target.files);
|
||||
// const blobFile = new Blob(event.target.files);
|
||||
const reader = new FileReader();
|
||||
reader.addEventListener('load', () => {
|
||||
console.log(reader.result);
|
||||
if (image && image.current) {
|
||||
image.current.onload = async () => {
|
||||
console.log(image.current.width, image.current);
|
||||
const cid = await storageClient?.put(event.target.files);
|
||||
console.log({ cid });
|
||||
};
|
||||
image.current.src = reader.result;
|
||||
}
|
||||
});
|
||||
reader.readAsDataURL(event.target.files[0]);
|
||||
},
|
||||
[storageClient],
|
||||
);
|
||||
|
||||
console.log({did})
|
||||
|
||||
|
||||
10
yarn.lock
10
yarn.lock
@@ -29046,11 +29046,6 @@ typescript@4.2.2:
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c"
|
||||
integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ==
|
||||
|
||||
typescript@4.3.5:
|
||||
version "4.3.5"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
|
||||
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
|
||||
|
||||
typescript@^2.6.2:
|
||||
version "2.9.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.2.tgz#1cbf61d05d6b96269244eb6a3bce4bd914e0f00c"
|
||||
@@ -29061,6 +29056,11 @@ typescript@^3.7.3:
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.9.tgz#e69905c54bc0681d0518bd4d587cc6f2d0b1a674"
|
||||
integrity sha512-kdMjTiekY+z/ubJCATUPlRDl39vXYiMV9iyeMuEuXZh2we6zz80uovNN2WlAxmmdE/Z/YQe+EbOEXB5RHEED3w==
|
||||
|
||||
typescript@^4.4.2:
|
||||
version "4.4.2"
|
||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.2.tgz#6d618640d430e3569a1dfb44f7d7e600ced3ee86"
|
||||
integrity sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==
|
||||
|
||||
typical@^6.0.0:
|
||||
version "6.0.1"
|
||||
resolved "https://registry.yarnpkg.com/typical/-/typical-6.0.1.tgz#89bd1a6aa5e5e96fa907fb6b7579223bff558a06"
|
||||
|
||||
Reference in New Issue
Block a user