1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

moved tags to sidebar (#135)

This commit is contained in:
muerwre 2022-08-15 12:33:50 +07:00 committed by GitHub
parent a8ac233140
commit b36dcca0df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 99 additions and 71 deletions

View file

@ -84,11 +84,14 @@ export const SidebarProvider = <T extends SidebarComponent>({
{children}
{current && (
<ModalWrapper onOverlayClick={close}>
{createElement(sidebarComponents[current], {
onRequestClose: close,
openSidebar: open,
...omit(['sidebar'], router.query),
} as any)}
{createElement(
sidebarComponents[current] as any,
{
onRequestClose: close,
openSidebar: open,
...omit(['sidebar'], router.query),
} as any,
)}
</ModalWrapper>
)}
</SidebarContext.Provider>