Enable usernames
This commit is contained in:
parent
38da3d3152
commit
43de83f0de
26 changed files with 196 additions and 438 deletions
|
@ -26,9 +26,6 @@ export default {
|
|||
component: ProfileEditor,
|
||||
title: 'Components/ProfileEditor',
|
||||
argTypes: {
|
||||
isUsernameFlagEnabled: {
|
||||
control: { type: 'checkbox' },
|
||||
},
|
||||
usernameEditState: {
|
||||
control: { type: 'radio' },
|
||||
options: {
|
||||
|
@ -64,7 +61,6 @@ export default {
|
|||
|
||||
usernameLink: 'https://signal.me/#eu/testtest',
|
||||
usernameLinkColor: Proto.AccountRecord.UsernameLink.Color.PURPLE,
|
||||
isUsernameFlagEnabled: false,
|
||||
usernameEditState: UsernameEditState.Editing,
|
||||
usernameLinkState: UsernameLinkState.Ready,
|
||||
|
||||
|
@ -148,34 +144,25 @@ WithCustomAbout.args = {
|
|||
aboutText: 'Live. Laugh. Love',
|
||||
};
|
||||
|
||||
export const WithUsernameFlagEnabled = Template.bind({});
|
||||
WithUsernameFlagEnabled.args = {
|
||||
isUsernameFlagEnabled: true,
|
||||
};
|
||||
|
||||
export const WithUsernameFlagEnabledAndUsername = Template.bind({});
|
||||
WithUsernameFlagEnabledAndUsername.args = {
|
||||
isUsernameFlagEnabled: true,
|
||||
export const WithUsername = Template.bind({});
|
||||
WithUsername.args = {
|
||||
username: 'signaluser.123',
|
||||
};
|
||||
|
||||
export const DeletingUsername = Template.bind({});
|
||||
DeletingUsername.args = {
|
||||
isUsernameFlagEnabled: true,
|
||||
username: 'signaluser.123',
|
||||
usernameEditState: UsernameEditState.Deleting,
|
||||
};
|
||||
|
||||
export const ConfirmingDelete = Template.bind({});
|
||||
ConfirmingDelete.args = {
|
||||
isUsernameFlagEnabled: true,
|
||||
username: 'signaluser.123',
|
||||
usernameEditState: UsernameEditState.ConfirmingDelete,
|
||||
};
|
||||
|
||||
export const Corrupted = Template.bind({});
|
||||
Corrupted.args = {
|
||||
isUsernameFlagEnabled: true,
|
||||
username: 'signaluser.123',
|
||||
usernameCorrupted: true,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue