mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-30 19:33:30 -04:00
* Update pnpm version
* Fix autoformat
* Improve autoformat msg
* Attempt to fix autoformat 2
* Fix autoformat
* Ignore deleted files in auto-format
* Fix diff filter
* Autoformat whole codebase
* Improve error message for autoformat CI
* Test autoformat CI
* Revert "Test autoformat CI"
This reverts commit 0bf2f46d1a.
39 lines
976 B
TypeScript
39 lines
976 B
TypeScript
import { LibraryContextProvider, useClientContext } from '@sd/client';
|
|
|
|
import Debug from './sections/Debug';
|
|
// sections
|
|
import Devices from './sections/Devices';
|
|
import Library from './sections/Library';
|
|
import Local from './sections/Local';
|
|
import Locations from './sections/Locations';
|
|
import Peers from './sections/Peers';
|
|
import SavedSearches from './sections/SavedSearches';
|
|
import Tags from './sections/Tags';
|
|
import Tools from './sections/Tools';
|
|
import SidebarLayout from './SidebarLayout';
|
|
|
|
export default function Sidebar() {
|
|
const { library } = useClientContext();
|
|
return (
|
|
<SidebarLayout>
|
|
{library && (
|
|
<LibraryContextProvider library={library}>
|
|
<Library />
|
|
</LibraryContextProvider>
|
|
)}
|
|
<Debug />
|
|
<Local />
|
|
{library && (
|
|
<LibraryContextProvider library={library}>
|
|
<SavedSearches />
|
|
<Devices />
|
|
<Peers />
|
|
<Locations />
|
|
<Tags />
|
|
</LibraryContextProvider>
|
|
)}
|
|
<Tools />
|
|
</SidebarLayout>
|
|
);
|
|
}
|