1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46: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

@ -7,7 +7,6 @@ import { PhotoSwipe } from '~/containers/dialogs/PhotoSwipe';
import { RestorePasswordDialog } from '~/containers/dialogs/RestorePasswordDialog';
import { RestoreRequestDialog } from '~/containers/dialogs/RestoreRequestDialog';
import { TestDialog } from '~/containers/dialogs/TestDialog';
import { TagSidebar } from '~/containers/sidebars/TagSidebar';
export enum Dialog {
Login = 'Login',
@ -19,7 +18,6 @@ export enum Dialog {
Photoswipe = 'Photoswipe',
CreateNode = 'CreateNode',
EditNode = 'EditNode',
TagSidebar = 'TagNodes',
}
export const DIALOG_CONTENT = {
@ -32,5 +30,4 @@ export const DIALOG_CONTENT = {
[Dialog.Photoswipe]: PhotoSwipe,
[Dialog.CreateNode]: EditorCreateDialog,
[Dialog.EditNode]: EditorEditDialog,
[Dialog.TagSidebar]: TagSidebar,
} as const;

View file

@ -1,9 +1,11 @@
import { ProfileSidebar } from "~/containers/sidebars/ProfileSidebar";
import { SettingsSidebar } from '~/containers/sidebars/ProfileSidebar';
import { TagSidebar } from '~/containers/sidebars/TagSidebar';
import { SidebarName } from "./index";
import { SidebarName } from './index';
export const sidebarComponents = {
[SidebarName.Settings]: ProfileSidebar,
[SidebarName.Settings]: SettingsSidebar,
[SidebarName.Tag]: TagSidebar,
};
export type SidebarComponents = typeof sidebarComponents;

View file

@ -1,5 +1,6 @@
import { ProfileSidebar } from "~/containers/sidebars/ProfileSidebar";
import { SettingsSidebar } from '~/containers/sidebars/ProfileSidebar';
export enum SidebarName {
Settings = "settings",
Settings = 'settings',
Tag = 'tag',
}