diff --git a/src/pages/drive/index.tsx b/src/pages/drive/index.tsx index 0e35b318..7cdf2119 100644 --- a/src/pages/drive/index.tsx +++ b/src/pages/drive/index.tsx @@ -270,42 +270,45 @@ const Drive: FC = () => { ) : null} - {!loading && - (activePod ? ( - directories?.length || files?.length ? ( -
- {driveView === 'grid' ? ( - - ) : null} - - {driveView === 'list' ? ( - - ) : null} -
+ {!loading && ( +
+ {activePod ? ( + directories?.length || files?.length ? ( +
+ {driveView === 'grid' ? ( + + ) : null} + + {driveView === 'list' ? ( + + ) : null} +
+ ) : ( + setShowUploadFileModal(true)} + /> + ) ) : ( - setShowUploadFileModal(true)} - /> - ) - ) : ( - - ))} + + )} +
+ )} {showUploadFileModal && (