Improve experience for contacts without signal accounts

This commit is contained in:
Fedor Indutny 2021-05-13 13:57:27 -07:00 committed by Scott Nonnenberg
parent fe505a7f2f
commit 7fa730531a
11 changed files with 266 additions and 3 deletions

View file

@ -74,6 +74,9 @@ const createProps = (overrideProps: Partial<Props> = {}): Props => ({
onStartGroupMigration: action('onStartGroupMigration'),
// GroupV2 Pending Approval Actions
onCancelJoinRequest: action('onCancelJoinRequest'),
// SMS-only
isSMSOnly: overrideProps.isSMSOnly || false,
isFetchingUUID: overrideProps.isFetchingUUID || false,
});
story.add('Default', () => {
@ -106,3 +109,20 @@ story.add('Message Request', () => {
return <CompositionArea {...props} />;
});
story.add('SMS-only fetching UUID', () => {
const props = createProps({
isSMSOnly: true,
isFetchingUUID: true,
});
return <CompositionArea {...props} />;
});
story.add('SMS-only', () => {
const props = createProps({
isSMSOnly: true,
});
return <CompositionArea {...props} />;
});