chore: show invite count bubble on preferences button (#2458)
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
const PREFERENCE_IDS = [
|
||||
'general',
|
||||
'account',
|
||||
'security',
|
||||
'home-server',
|
||||
'vaults',
|
||||
'appearance',
|
||||
'backups',
|
||||
'listed',
|
||||
'shortcuts',
|
||||
'accessibility',
|
||||
'get-free-month',
|
||||
'help-feedback',
|
||||
'whats-new',
|
||||
] as const
|
||||
|
||||
export type PreferenceId = (typeof PREFERENCE_IDS)[number]
|
||||
@@ -1,5 +1,5 @@
|
||||
import { PreferenceId } from '../../Preferences/PreferenceId'
|
||||
import { PreferencePaneId } from '@standardnotes/services'
|
||||
|
||||
export type SettingsParams = {
|
||||
panel: PreferenceId
|
||||
panel: PreferencePaneId
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { UserRequestType } from '@standardnotes/common'
|
||||
import { PreferenceId } from './../Preferences/PreferenceId'
|
||||
import { PreferencePaneId } from '@standardnotes/services'
|
||||
import { AppViewRouteParam, ValidAppViewRoutes } from './Params/AppViewRouteParams'
|
||||
import { DemoParams } from './Params/DemoParams'
|
||||
import { OnboardingParams } from './Params/OnboardingParams'
|
||||
@@ -58,7 +58,7 @@ export class RouteParser implements RouteParserInterface {
|
||||
this.checkForProperRouteType(RouteType.Settings)
|
||||
|
||||
return {
|
||||
panel: this.searchParams.get(RootQueryParam.Settings) as PreferenceId,
|
||||
panel: this.searchParams.get(RootQueryParam.Settings) as PreferencePaneId,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ export * from './Keyboard/KeyboardKey'
|
||||
export * from './Keyboard/KeyboardModifier'
|
||||
export * from './Keyboard/keyboardCharacterForModifier'
|
||||
export * from './Keyboard/keyboardStringForShortcut'
|
||||
export * from './Preferences/PreferenceId'
|
||||
export * from './Route/Params/DemoParams'
|
||||
export * from './Route/Params/OnboardingParams'
|
||||
export * from './Route/Params/PurchaseParams'
|
||||
|
||||
Reference in New Issue
Block a user