Skip to content
Snippets Groups Projects
Commit 5fc8c566 authored by Nidharshan A's avatar Nidharshan A
Browse files

Update Hero.js

parent a20743cf
No related branches found
No related tags found
No related merge requests found
...@@ -14,17 +14,14 @@ import 'firebase/storage' ...@@ -14,17 +14,14 @@ import 'firebase/storage'
import Loader from 'react-loader-spinner' import Loader from 'react-loader-spinner'
import Dropzone from './Dropzone' import Dropzone from './Dropzone'
import ParticlesBg from 'particles-bg' import ParticlesBg from 'particles-bg'
import { v4 as uuidV4 } from 'uuid'
const Hero = ({ handleLogout }) => { const Hero = ({ handleLogout }) => {
const { folderId } = useParams() const { folderId } = useParams()
const { state = {} } = useLocation() const { state = {} } = useLocation()
const rand = uuidV4()
const { folder, childFolders, childFiles } = useFolder( const { folder, childFolders, childFiles } = useFolder(
folderId, folderId,
state.folder, state.folder
rand
) )
if (!folder) { if (!folder) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment