chore: show invite count bubble on preferences button (#2458)

This commit is contained in:
Aman Harwara
2023-09-01 22:31:35 +05:30
committed by GitHub
parent 4ca291291c
commit be3b904f62
20 changed files with 158 additions and 54 deletions

View File

@@ -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]

View File

@@ -1,5 +1,5 @@
import { PreferenceId } from '../../Preferences/PreferenceId'
import { PreferencePaneId } from '@standardnotes/services'
export type SettingsParams = {
panel: PreferenceId
panel: PreferencePaneId
}

View File

@@ -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,
}
}

View File

@@ -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'