Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
adlk committed Dec 23, 2024
1 parent 7940b16 commit bed79eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions src/components/ui/ImageUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export default @observer class ImageUpload extends Component {
};

state = {
path: null,
image: null,
}

Expand All @@ -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);
}

Expand All @@ -75,8 +64,6 @@ export default @observer class ImageUpload extends Component {
[`${className}`]: className,
});

console.log('state', this.state);

return (
<div className="image-upload-wrapper">
<label className="franz-form__label" htmlFor="iconUpload">{field.label}</label>
Expand Down
1 change: 0 additions & 1 deletion src/features/planSelection/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bed79eb

Please sign in to comment.