Usernames: Create/update/delete in profile editor
This commit is contained in:
parent
a9cb621eb6
commit
3190f95fac
38 changed files with 923 additions and 89 deletions
30
ts/state/ducks/conversationsEnums.ts
Normal file
30
ts/state/ducks/conversationsEnums.ts
Normal file
|
@ -0,0 +1,30 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
// We prevent circular loops between ducks and selectors/components with `import type`.
|
||||
// For example, Selectors are used in action creators using thunk/getState, but those
|
||||
// Selectors need types from the ducks. Selectors shouldn't use code from ducks.
|
||||
//
|
||||
// But enums can be used as types but also as code. So we keep them out of the ducks.
|
||||
|
||||
export enum UsernameSaveState {
|
||||
None = 'None',
|
||||
Saving = 'Saving',
|
||||
UsernameTakenError = 'UsernameTakenError',
|
||||
UsernameMalformedError = 'UsernameMalformedError',
|
||||
GeneralError = 'GeneralError',
|
||||
DeleteFailed = 'DeleteFailed',
|
||||
Success = 'Success',
|
||||
}
|
||||
|
||||
export enum ComposerStep {
|
||||
StartDirectConversation = 'StartDirectConversation',
|
||||
ChooseGroupMembers = 'ChooseGroupMembers',
|
||||
SetGroupMetadata = 'SetGroupMetadata',
|
||||
}
|
||||
|
||||
export enum OneTimeModalState {
|
||||
NeverShown,
|
||||
Showing,
|
||||
Shown,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue