Skip to content

add progress bar#6

Open
suongliang wants to merge 1 commit intomasterfrom
add-progress-bar
Open

add progress bar#6
suongliang wants to merge 1 commit intomasterfrom
add-progress-bar

Conversation

@suongliang
Copy link
Copy Markdown
Collaborator

add progress bar for img upload

add progress bar for img upload
import { useDropzone } from 'react-dropzone'
import style from '../styles/Dropzone.module.css';
import {guidGenerator} from '../helpers/guidGenerator';
import ProgressBar from'../components/progressBar';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use path alias here

...state,
images: [...state.images, ...imagesArray]
});
setTimeout( () => {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to use setTimeout here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants