From bed79ebe60f119d194c7eb134bf1b6f748313ddf Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Mon, 23 Dec 2024 21:40:39 +0100 Subject: [PATCH] remove debug logs --- src/components/ui/ImageUpload.js | 13 ------------- src/features/planSelection/index.js | 1 - 2 files changed, 14 deletions(-) diff --git a/src/components/ui/ImageUpload.js b/src/components/ui/ImageUpload.js index df2a6438..4d9a9f3e 100644 --- a/src/components/ui/ImageUpload.js +++ b/src/components/ui/ImageUpload.js @@ -20,7 +20,6 @@ export default @observer class ImageUpload extends Component { }; state = { - path: null, image: null, } @@ -29,29 +28,19 @@ export default @observer class ImageUpload extends Component { onDrop(acceptedFiles) { const { field } = this.props; - console.log('acceptedFiles', acceptedFiles); - acceptedFiles.forEach((file) => { if (file) { const reader = new FileReader(); // When the file reader is done, this function runs reader.onloadend = () => { - // `reader.result` is something like: "data:image/png;base64,iVBORw0K..." const base64Data = reader.result; - // If you need just the base64 portion without the data URL prefix: - // const base64String = base64Data.split(',')[1]; - - console.log('Base64 Image:', base64Data); - this.setState({ image: base64Data, }); - // Now you can use `base64Data` (or `base64String`) as needed. }; - // Read the file as a Data URL reader.readAsDataURL(file); } @@ -75,8 +64,6 @@ export default @observer class ImageUpload extends Component { [`${className}`]: className, }); - console.log('state', this.state); - return (
diff --git a/src/features/planSelection/index.js b/src/features/planSelection/index.js index a9e4b7b6..7032ed54 100644 --- a/src/features/planSelection/index.js +++ b/src/features/planSelection/index.js @@ -26,7 +26,6 @@ export default function initPlanSelection(stores, actions) { reaction( () => features.features.isPlanSelectionEnabled, (isEnabled) => { - console.log('planSelection: isEnabled', isEnabled); if (isEnabled) { debug('Initializing `planSelection` feature'); planSelectionStore.start(stores, actions);