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:
parent
a8ac233140
commit
b36dcca0df
13 changed files with 99 additions and 71 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue