diff --git a/app.vue b/app.vue
index 8f0571f..6899675 100644
--- a/app.vue
+++ b/app.vue
@@ -9,6 +9,7 @@
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/types/interfaces.ts b/types/interfaces.ts
index c23fbe5..2ee2108 100644
--- a/types/interfaces.ts
+++ b/types/interfaces.ts
@@ -130,11 +130,7 @@ export interface NavbarItem {
}
export interface INavbar {
- clientItems?: NavbarItem[]
- channelItems?: NavbarItem[] // search bar will require some changes
- contextName?: string
- contextIcon?: string
- guildUuid?: string
+ guild: GuildResponse
}
export interface NavbarOptions {
diff --git a/utils/updateNavbar.ts b/utils/updateNavbar.ts
deleted file mode 100644
index bd181d1..0000000
--- a/utils/updateNavbar.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import type { INavbar, NavbarOptions } from "~/types/interfaces";
-
-const navbar = useState("navbar")
-
-export default async (options: NavbarOptions) => {
- await nextTick()
-
- if (navbar.value) {
- if (options.guild) {
- navbar.value.channelItems = []
- navbar.value.contextName = options.guild?.name
- navbar.value.contextIcon = options.guild?.icon ?? undefined
- navbar.value.guildUuid = options.guild?.uuid
- }
- else if (options.isDirectMessages) {
- navbar.value.channelItems = []
- navbar.value.contextName = "Direct Messages"
- navbar.value.contextIcon = undefined
- navbar.value.guildUuid = undefined
- }
- }
-}
\ No newline at end of file