Add download module to the AppShelf

This commit is contained in:
ajnart
2022-05-29 15:32:39 +02:00
parent 174ed140ae
commit b229aacba5

View File

@@ -12,6 +12,8 @@ import { arrayMove, SortableContext } from '@dnd-kit/sortable';
import { useConfig } from '../../tools/state'; import { useConfig } from '../../tools/state';
import { SortableAppShelfItem, AppShelfItem } from './AppShelfItem'; import { SortableAppShelfItem, AppShelfItem } from './AppShelfItem';
import { ModuleWrapper } from '../modules/moduleWrapper';
import { DownloadsModule } from '../modules';
const AppShelf = (props: any) => { const AppShelf = (props: any) => {
const [activeId, setActiveId] = useState(null); const [activeId, setActiveId] = useState(null);
@@ -116,10 +118,16 @@ const AppShelf = (props: any) => {
{item()} {item()}
</> </>
) : null} ) : null}
<ModuleWrapper mt="xl" module={DownloadsModule} />
</Group> </Group>
); );
} }
return item(); return (
<Group grow direction="column">
{item()}
<ModuleWrapper mt="xl" module={DownloadsModule} />
</Group>
);
}; };
export default AppShelf; export default AppShelf;