Skip to content

Commit 87359a7

Browse files
ButteryCrumpetRokt33r
authored andcommitted
add to global data types
1 parent e3539e3 commit 87359a7

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

src/components/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ const App = () => {
165165
domain: team.domain,
166166
createdAt: team.createdAt,
167167
subscription: team.subscription,
168+
personal: team.personal,
168169
iconUrl:
169170
team.icon != null
170171
? getBoostHubTeamIconUrl(team.icon.location)

src/components/organisms/AppNavigator.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,10 @@ const TopLevelNavigator = () => {
334334
icon: mdiClockOutline,
335335
onClick: boostHubToggleSidebarTimelineEventEmitter.dispatch,
336336
},
337-
{
337+
]
338+
339+
if (!boosthubTeam.personal) {
340+
rows.push({
338341
tooltip: 'Notifications',
339342
icon:
340343
notificationCount > 0 ? (
@@ -347,8 +350,8 @@ const TopLevelNavigator = () => {
347350
mdiBellOutline
348351
),
349352
onClick: boostHubToggleSidebarNotificationsEventEmitter.dispatch,
350-
},
351-
]
353+
})
354+
}
352355

353356
if (
354357
boosthubTeam.subscription == null &&

src/lib/boosthub.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export type DesktopGlobalDataResponseBody = {
7474
icon?: { location: string }
7575
createdAt: string
7676
subscription?: SerializedSubscription
77+
personal: boolean
7778
}[]
7879
}
7980

src/lib/generalStatus.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface GeneralStatus {
2222
iconUrl?: string
2323
createdAt: string
2424
subscription?: SerializedSubscription
25+
personal: boolean
2526
}[]
2627
showingNoteContextMenu: boolean
2728
sidebarTreeSortingOrder: SidebarTreeSortingOrder

0 commit comments

Comments
 (0)