Browse Source

remove selection bar

master
jeffvli 3 years ago
parent
commit
9af6e15bef
  1. 49
      src/components/viewtypes/ListViewType.tsx

49
src/components/viewtypes/ListViewType.tsx

@ -8,16 +8,10 @@ import React, {
forwardRef,
useImperativeHandle,
} from 'react';
import { DOMHelper, Rate } from 'rsuite';
import { DOMHelper } from 'rsuite';
import { useAppSelector } from '../../redux/hooks';
import PageLoader from '../loader/PageLoader';
import SelectionBar from '../selectionbar/SelectionBar';
import ListViewTable from './ListViewTable';
import {
NowPlayingContextMenu,
ContextMenuButton,
} from '../shared/ContextMenu';
import { ContextMenuDivider, ContextMenuTitle } from '../shared/styled';
declare global {
interface Window {
@ -45,7 +39,6 @@ const ListViewType = (
}: any,
ref: any
) => {
const misc = useAppSelector((state) => state.misc);
const [isDragging, setIsDragging] = useState(false);
const [dragDirection, setDragDirection] = useState('');
const [dragSpeed, setDragSpeed] = useState('');
@ -158,14 +151,6 @@ const ListViewType = (
return (
<>
{!show && <PageLoader />}
{multiSelect.selected.length >= 1 && !rest.miniView && (
<SelectionBar
handleUpClick={rest.handleUpClick}
handleDownClick={rest.handleDownClick}
handleManualClick={rest.handleManualClick}
/>
)}
<div
style={{
flexGrow: 1,
@ -352,38 +337,6 @@ const ListViewType = (
/>
)}
</div>
{misc.contextMenu.show && misc.contextMenu.type === 'nowPlaying' && (
<NowPlayingContextMenu
xPos={misc.contextMenu.xPos}
yPos={misc.contextMenu.yPos}
width={130}
numOfButtons={6}
numOfDividers={5}
hasTitle
>
<ContextMenuTitle>
Selected: {multiSelect.selected.length}
</ContextMenuTitle>
<ContextMenuDivider />
<ContextMenuButton>Remove from queue</ContextMenuButton>
<ContextMenuDivider />
<ContextMenuButton>Add to playlist</ContextMenuButton>
<ContextMenuDivider />
<ContextMenuButton>Add favorite</ContextMenuButton>
<ContextMenuButton>Remove favorite</ContextMenuButton>
<ContextMenuDivider />
<ContextMenuButton>View details</ContextMenuButton>
<ContextMenuDivider />
<Rate
readOnly={false}
size="xs"
style={{ textAlign: 'center', marginLeft: '10px' }}
/>
</NowPlayingContextMenu>
)}
</>
);
};

Loading…
Cancel
Save