2021-08-18 16:08:14 -04:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2023-10-11 12:06:43 -07:00
|
|
|
import type { Meta, StoryFn } from '@storybook/react';
|
2021-08-18 16:08:14 -04:00
|
|
|
import React from 'react';
|
|
|
|
|
2023-10-11 12:06:43 -07:00
|
|
|
import { action } from '@storybook/addon-actions';
|
2025-04-02 14:57:29 -04:00
|
|
|
import { Page, Preferences } from './Preferences';
|
2021-08-18 16:08:14 -04:00
|
|
|
import { DEFAULT_CONVERSATION_COLOR } from '../types/Colors';
|
|
|
|
import { PhoneNumberSharingMode } from '../util/phoneNumberSharingMode';
|
|
|
|
import { PhoneNumberDiscoverability } from '../util/phoneNumberDiscoverability';
|
2025-03-26 12:35:32 -07:00
|
|
|
import { EmojiSkinTone } from './fun/data/emojis';
|
2025-04-02 14:57:29 -04:00
|
|
|
import { DAY, DurationInSeconds, WEEK } from '../util/durations';
|
2025-05-15 13:58:20 +10:00
|
|
|
import { DialogUpdate } from './DialogUpdate';
|
|
|
|
import { DialogType } from '../types/Dialogs';
|
|
|
|
|
|
|
|
import type { PropsType } from './Preferences';
|
|
|
|
import type { WidthBreakpoint } from './_util';
|
2021-08-18 16:08:14 -04:00
|
|
|
|
2025-03-13 12:52:08 -07:00
|
|
|
const { i18n } = window.SignalContext;
|
2021-08-18 16:08:14 -04:00
|
|
|
|
|
|
|
const availableMicrophones = [
|
|
|
|
{
|
|
|
|
name: 'DefAuLt (Headphones)',
|
|
|
|
index: 0,
|
|
|
|
uniqueId: 'Default',
|
|
|
|
i18nKey: 'default_communication_device',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
const availableSpeakers = [
|
|
|
|
{
|
|
|
|
name: 'Default',
|
|
|
|
index: 0,
|
|
|
|
uniqueId: 'Default',
|
|
|
|
i18nKey: 'default_communication_device',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "Natalie's Airpods (Bluetooth)",
|
|
|
|
index: 1,
|
|
|
|
uniqueId: 'aa',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'UE Boom (Bluetooth)',
|
|
|
|
index: 2,
|
|
|
|
uniqueId: 'bb',
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
2025-05-12 14:15:11 -07:00
|
|
|
const validateBackupResult = {
|
|
|
|
totalBytes: 100,
|
|
|
|
duration: 10000,
|
|
|
|
stats: {
|
|
|
|
adHocCalls: 1,
|
|
|
|
callLinks: 2,
|
|
|
|
conversations: 3,
|
|
|
|
chats: 4,
|
|
|
|
distributionLists: 5,
|
|
|
|
messages: 6,
|
|
|
|
notificationProfiles: 2,
|
|
|
|
skippedMessages: 7,
|
|
|
|
stickerPacks: 8,
|
|
|
|
fixedDirectMessages: 9,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
const exportLocalBackupResult = {
|
|
|
|
...validateBackupResult,
|
|
|
|
snapshotDir: '/home/signaluser/SignalBackups/signal-backup-1745618069169',
|
|
|
|
};
|
|
|
|
|
2025-05-15 13:58:20 +10:00
|
|
|
function renderUpdateDialog(
|
|
|
|
props: Readonly<{ containerWidthBreakpoint: WidthBreakpoint }>
|
|
|
|
): JSX.Element {
|
|
|
|
return (
|
|
|
|
<DialogUpdate
|
|
|
|
i18n={i18n}
|
|
|
|
containerWidthBreakpoint={props.containerWidthBreakpoint}
|
|
|
|
dialogType={DialogType.DownloadReady}
|
|
|
|
downloadSize={100000}
|
|
|
|
downloadedSize={50000}
|
|
|
|
version="8.99.0"
|
|
|
|
currentVersion="8.98.00"
|
|
|
|
disableDismiss
|
|
|
|
dismissDialog={action('dismissDialog')}
|
|
|
|
snoozeUpdate={action('snoozeUpdate')}
|
|
|
|
startUpdate={action('startUpdate')}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2022-06-06 20:48:02 -04:00
|
|
|
export default {
|
|
|
|
title: 'Components/Preferences',
|
2022-07-19 20:47:05 -04:00
|
|
|
component: Preferences,
|
2023-10-11 12:06:43 -07:00
|
|
|
args: {
|
|
|
|
i18n,
|
|
|
|
|
2025-03-04 10:09:43 +10:00
|
|
|
autoDownloadAttachment: {
|
|
|
|
photos: true,
|
|
|
|
videos: false,
|
|
|
|
audio: false,
|
|
|
|
documents: false,
|
|
|
|
},
|
2023-10-11 12:06:43 -07:00
|
|
|
availableCameras: [
|
|
|
|
{
|
|
|
|
deviceId:
|
|
|
|
'dfbe6effe70b0611ba0fdc2a9ea3f39f6cb110e6687948f7e5f016c111b7329c',
|
|
|
|
groupId:
|
|
|
|
'63ee218d2446869e40adfc958ff98263e51f74382b0143328ee4826f20a76f47',
|
|
|
|
kind: 'videoinput' as MediaDeviceKind,
|
|
|
|
label: 'FaceTime HD Camera (Built-in) (9fba:bced)',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
deviceId:
|
|
|
|
'e2db196a31d50ff9b135299dc0beea67f65b1a25a06d8a4ce76976751bb7a08d',
|
|
|
|
groupId:
|
|
|
|
'218ba7f00d7b1239cca15b9116769e5e7d30cc01104ebf84d667643661e0ecf9',
|
|
|
|
kind: 'videoinput' as MediaDeviceKind,
|
|
|
|
label: 'Logitech Webcam (4e72:9058)',
|
|
|
|
},
|
|
|
|
],
|
2023-11-06 13:19:23 -08:00
|
|
|
availableLocales: ['en'],
|
2023-10-11 12:06:43 -07:00
|
|
|
availableMicrophones,
|
|
|
|
availableSpeakers,
|
2025-04-02 14:57:29 -04:00
|
|
|
backupFeatureEnabled: false,
|
2023-10-11 12:06:43 -07:00
|
|
|
blockedCount: 0,
|
|
|
|
customColors: {},
|
|
|
|
defaultConversationColor: DEFAULT_CONVERSATION_COLOR,
|
|
|
|
deviceName: 'Work Windows ME',
|
2025-03-26 12:35:32 -07:00
|
|
|
emojiSkinToneDefault: EmojiSkinTone.None,
|
2024-02-06 10:35:59 -08:00
|
|
|
phoneNumber: '+1 555 123-4567',
|
2023-10-11 12:06:43 -07:00
|
|
|
hasAudioNotifications: true,
|
2023-12-18 15:22:46 -08:00
|
|
|
hasAutoConvertEmoji: true,
|
2023-10-11 12:06:43 -07:00
|
|
|
hasAutoDownloadUpdate: true,
|
|
|
|
hasAutoLaunch: true,
|
|
|
|
hasCallNotifications: true,
|
|
|
|
hasCallRingtoneNotification: false,
|
2025-05-12 15:16:19 -07:00
|
|
|
hasContentProtection: false,
|
2023-10-11 12:06:43 -07:00
|
|
|
hasCountMutedConversations: false,
|
2025-05-16 01:36:12 +10:00
|
|
|
hasFailedStorySends: false,
|
2023-10-11 12:06:43 -07:00
|
|
|
hasHideMenuBar: false,
|
|
|
|
hasIncomingCallNotifications: true,
|
|
|
|
hasLinkPreviews: true,
|
|
|
|
hasMediaCameraPermissions: true,
|
|
|
|
hasMediaPermissions: true,
|
|
|
|
hasMessageAudio: true,
|
|
|
|
hasMinimizeToAndStartInSystemTray: true,
|
|
|
|
hasMinimizeToSystemTray: true,
|
|
|
|
hasNotificationAttention: false,
|
|
|
|
hasNotifications: true,
|
2025-05-15 13:58:20 +10:00
|
|
|
hasPendingUpdate: false,
|
2023-10-11 12:06:43 -07:00
|
|
|
hasReadReceipts: true,
|
|
|
|
hasRelayCalls: false,
|
|
|
|
hasSpellCheck: true,
|
|
|
|
hasStoriesDisabled: false,
|
|
|
|
hasTextFormatting: true,
|
|
|
|
hasTypingIndicators: true,
|
|
|
|
initialSpellCheckSetting: true,
|
|
|
|
isAutoDownloadUpdatesSupported: true,
|
|
|
|
isAutoLaunchSupported: true,
|
|
|
|
isHideMenuBarSupported: true,
|
|
|
|
isNotificationAttentionSupported: true,
|
|
|
|
isSyncSupported: true,
|
|
|
|
isSystemTraySupported: true,
|
2025-04-15 16:04:30 -07:00
|
|
|
isInternalUser: false,
|
2025-05-12 15:16:19 -07:00
|
|
|
isContentProtectionSupported: true,
|
|
|
|
isContentProtectionNeeded: true,
|
2023-10-11 12:06:43 -07:00
|
|
|
isMinimizeToAndStartInSystemTraySupported: true,
|
2025-05-15 13:58:20 +10:00
|
|
|
isUpdateDownloaded: false,
|
2023-10-11 12:06:43 -07:00
|
|
|
lastSyncTime: Date.now(),
|
2023-11-06 13:19:23 -08:00
|
|
|
localeOverride: null,
|
2025-05-16 01:36:12 +10:00
|
|
|
navTabsCollapsed: false,
|
2023-10-11 12:06:43 -07:00
|
|
|
notificationContent: 'name',
|
2025-05-16 01:36:12 +10:00
|
|
|
otherTabsUnreadStats: {
|
|
|
|
unreadCount: 0,
|
|
|
|
unreadMentionsCount: 0,
|
|
|
|
markedUnread: false,
|
|
|
|
},
|
2023-11-06 13:19:23 -08:00
|
|
|
preferredSystemLocales: ['en'],
|
|
|
|
resolvedLocale: 'en',
|
2023-10-11 12:06:43 -07:00
|
|
|
selectedCamera:
|
|
|
|
'dfbe6effe70b0611ba0fdc2a9ea3f39f6cb110e6687948f7e5f016c111b7329c',
|
|
|
|
selectedMicrophone: availableMicrophones[0],
|
|
|
|
selectedSpeaker: availableSpeakers[1],
|
|
|
|
sentMediaQualitySetting: 'standard',
|
|
|
|
themeSetting: 'system',
|
|
|
|
universalExpireTimer: DurationInSeconds.HOUR,
|
|
|
|
whoCanFindMe: PhoneNumberDiscoverability.Discoverable,
|
|
|
|
whoCanSeeMe: PhoneNumberSharingMode.Everybody,
|
|
|
|
zoomFactor: 1,
|
|
|
|
|
2025-05-15 13:58:20 +10:00
|
|
|
renderUpdateDialog,
|
|
|
|
getConversationsWithCustomColor: () => [],
|
2023-10-11 12:06:43 -07:00
|
|
|
|
|
|
|
addCustomColor: action('addCustomColor'),
|
|
|
|
doDeleteAllData: action('doDeleteAllData'),
|
|
|
|
editCustomColor: action('editCustomColor'),
|
2025-05-12 14:15:11 -07:00
|
|
|
exportLocalBackup: async () => {
|
|
|
|
return {
|
|
|
|
result: exportLocalBackupResult,
|
|
|
|
};
|
|
|
|
},
|
2023-10-11 12:06:43 -07:00
|
|
|
makeSyncRequest: action('makeSyncRequest'),
|
|
|
|
onAudioNotificationsChange: action('onAudioNotificationsChange'),
|
2023-12-18 15:22:46 -08:00
|
|
|
onAutoConvertEmojiChange: action('onAutoConvertEmojiChange'),
|
2025-03-04 10:09:43 +10:00
|
|
|
onAutoDownloadAttachmentChange: action('onAutoDownloadAttachmentChange'),
|
2023-10-11 12:06:43 -07:00
|
|
|
onAutoDownloadUpdateChange: action('onAutoDownloadUpdateChange'),
|
|
|
|
onAutoLaunchChange: action('onAutoLaunchChange'),
|
|
|
|
onCallNotificationsChange: action('onCallNotificationsChange'),
|
|
|
|
onCallRingtoneNotificationChange: action(
|
|
|
|
'onCallRingtoneNotificationChange'
|
|
|
|
),
|
2025-05-12 15:16:19 -07:00
|
|
|
onContentProtectionChange: action('onContentProtectionChange'),
|
2023-10-11 12:06:43 -07:00
|
|
|
onCountMutedConversationsChange: action('onCountMutedConversationsChange'),
|
2025-03-26 12:35:32 -07:00
|
|
|
onEmojiSkinToneDefaultChange: action('onEmojiSkinToneDefaultChange'),
|
2023-10-11 12:06:43 -07:00
|
|
|
onHasStoriesDisabledChanged: action('onHasStoriesDisabledChanged'),
|
|
|
|
onHideMenuBarChange: action('onHideMenuBarChange'),
|
|
|
|
onIncomingCallNotificationsChange: action(
|
|
|
|
'onIncomingCallNotificationsChange'
|
|
|
|
),
|
2023-11-06 13:19:23 -08:00
|
|
|
onLocaleChange: action('onLocaleChange'),
|
2023-10-11 12:06:43 -07:00
|
|
|
onLastSyncTimeChange: action('onLastSyncTimeChange'),
|
|
|
|
onMediaCameraPermissionsChange: action('onMediaCameraPermissionsChange'),
|
|
|
|
onMediaPermissionsChange: action('onMediaPermissionsChange'),
|
|
|
|
onMessageAudioChange: action('onMessageAudioChange'),
|
|
|
|
onMinimizeToAndStartInSystemTrayChange: action(
|
|
|
|
'onMinimizeToAndStartInSystemTrayChange'
|
|
|
|
),
|
|
|
|
onMinimizeToSystemTrayChange: action('onMinimizeToSystemTrayChange'),
|
|
|
|
onNotificationAttentionChange: action('onNotificationAttentionChange'),
|
|
|
|
onNotificationContentChange: action('onNotificationContentChange'),
|
|
|
|
onNotificationsChange: action('onNotificationsChange'),
|
|
|
|
onRelayCallsChange: action('onRelayCallsChange'),
|
|
|
|
onSelectedCameraChange: action('onSelectedCameraChange'),
|
|
|
|
onSelectedMicrophoneChange: action('onSelectedMicrophoneChange'),
|
|
|
|
onSelectedSpeakerChange: action('onSelectedSpeakerChange'),
|
|
|
|
onSentMediaQualityChange: action('onSentMediaQualityChange'),
|
|
|
|
onSpellCheckChange: action('onSpellCheckChange'),
|
2025-05-15 13:58:20 +10:00
|
|
|
onStartUpdate: action('onStartUpdate'),
|
2023-10-11 12:06:43 -07:00
|
|
|
onTextFormattingChange: action('onTextFormattingChange'),
|
|
|
|
onThemeChange: action('onThemeChange'),
|
2025-05-16 01:36:12 +10:00
|
|
|
onToggleNavTabsCollapse: action('onToggleNavTabsCollapse'),
|
2023-10-11 12:06:43 -07:00
|
|
|
onUniversalExpireTimerChange: action('onUniversalExpireTimerChange'),
|
|
|
|
onWhoCanSeeMeChange: action('onWhoCanSeeMeChange'),
|
|
|
|
onWhoCanFindMeChange: action('onWhoCanFindMeChange'),
|
|
|
|
onZoomFactorChange: action('onZoomFactorChange'),
|
2025-04-02 14:57:29 -04:00
|
|
|
refreshCloudBackupStatus: action('refreshCloudBackupStatus'),
|
|
|
|
refreshBackupSubscriptionStatus: action('refreshBackupSubscriptionStatus'),
|
2023-10-11 12:06:43 -07:00
|
|
|
removeCustomColor: action('removeCustomColor'),
|
|
|
|
removeCustomColorOnConversations: action(
|
|
|
|
'removeCustomColorOnConversations'
|
|
|
|
),
|
|
|
|
resetAllChatColors: action('resetAllChatColors'),
|
|
|
|
resetDefaultChatColor: action('resetDefaultChatColor'),
|
|
|
|
setGlobalDefaultConversationColor: action(
|
|
|
|
'setGlobalDefaultConversationColor'
|
|
|
|
),
|
2025-04-15 16:04:30 -07:00
|
|
|
validateBackup: async () => {
|
|
|
|
return {
|
2025-05-12 14:15:11 -07:00
|
|
|
result: validateBackupResult,
|
2025-04-15 16:04:30 -07:00
|
|
|
};
|
|
|
|
},
|
2023-10-11 12:06:43 -07:00
|
|
|
} satisfies PropsType,
|
|
|
|
} satisfies Meta<PropsType>;
|
2021-08-18 16:08:14 -04:00
|
|
|
|
2022-11-17 16:45:19 -08:00
|
|
|
// eslint-disable-next-line react/function-component-definition
|
2023-10-11 12:06:43 -07:00
|
|
|
const Template: StoryFn<PropsType> = args => <Preferences {...args} />;
|
2021-08-18 16:08:14 -04:00
|
|
|
|
2022-07-19 20:47:05 -04:00
|
|
|
export const _Preferences = Template.bind({});
|
2021-08-18 16:08:14 -04:00
|
|
|
|
2022-07-19 20:47:05 -04:00
|
|
|
export const Blocked1 = Template.bind({});
|
|
|
|
Blocked1.args = {
|
|
|
|
blockedCount: 1,
|
|
|
|
};
|
2021-08-18 16:08:14 -04:00
|
|
|
|
2022-07-19 20:47:05 -04:00
|
|
|
export const BlockedMany = Template.bind({});
|
|
|
|
BlockedMany.args = {
|
|
|
|
blockedCount: 55,
|
|
|
|
};
|
2022-06-06 20:48:02 -04:00
|
|
|
|
2022-07-19 20:47:05 -04:00
|
|
|
export const CustomUniversalExpireTimer = Template.bind({});
|
|
|
|
CustomUniversalExpireTimer.args = {
|
2022-11-16 12:18:02 -08:00
|
|
|
universalExpireTimer: DurationInSeconds.fromSeconds(9000),
|
2022-07-19 20:47:05 -04:00
|
|
|
};
|
2023-02-23 13:32:19 -08:00
|
|
|
|
|
|
|
export const PNPSharingDisabled = Template.bind({});
|
|
|
|
PNPSharingDisabled.args = {
|
|
|
|
whoCanSeeMe: PhoneNumberSharingMode.Nobody,
|
|
|
|
whoCanFindMe: PhoneNumberDiscoverability.Discoverable,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const PNPDiscoverabilityDisabled = Template.bind({});
|
|
|
|
PNPDiscoverabilityDisabled.args = {
|
|
|
|
whoCanSeeMe: PhoneNumberSharingMode.Nobody,
|
|
|
|
whoCanFindMe: PhoneNumberDiscoverability.NotDiscoverable,
|
|
|
|
};
|
2025-04-02 14:57:29 -04:00
|
|
|
|
|
|
|
export const BackupsPaidActive = Template.bind({});
|
|
|
|
BackupsPaidActive.args = {
|
|
|
|
initialPage: Page.Backups,
|
|
|
|
backupFeatureEnabled: true,
|
|
|
|
cloudBackupStatus: {
|
|
|
|
mediaSize: 539_249_410_039,
|
|
|
|
protoSize: 100_000_000,
|
|
|
|
createdAt: new Date(Date.now() - WEEK).getTime(),
|
|
|
|
},
|
|
|
|
backupSubscriptionStatus: {
|
|
|
|
status: 'active',
|
|
|
|
cost: {
|
|
|
|
amount: 22.99,
|
|
|
|
currencyCode: 'USD',
|
|
|
|
},
|
|
|
|
renewalDate: new Date(Date.now() + 20 * DAY),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const BackupsPaidCancelled = Template.bind({});
|
|
|
|
BackupsPaidCancelled.args = {
|
|
|
|
initialPage: Page.Backups,
|
|
|
|
backupFeatureEnabled: true,
|
|
|
|
cloudBackupStatus: {
|
|
|
|
mediaSize: 539_249_410_039,
|
|
|
|
protoSize: 100_000_000,
|
|
|
|
createdAt: new Date(Date.now() - WEEK).getTime(),
|
|
|
|
},
|
|
|
|
backupSubscriptionStatus: {
|
|
|
|
status: 'pending-cancellation',
|
|
|
|
cost: {
|
|
|
|
amount: 22.99,
|
|
|
|
currencyCode: 'USD',
|
|
|
|
},
|
|
|
|
expiryDate: new Date(Date.now() + 20 * DAY),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const BackupsFree = Template.bind({});
|
|
|
|
BackupsFree.args = {
|
|
|
|
initialPage: Page.Backups,
|
|
|
|
backupFeatureEnabled: true,
|
|
|
|
backupSubscriptionStatus: {
|
|
|
|
status: 'free',
|
|
|
|
mediaIncludedInBackupDurationDays: 30,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const BackupsOff = Template.bind({});
|
|
|
|
BackupsOff.args = {
|
|
|
|
initialPage: Page.Backups,
|
|
|
|
backupFeatureEnabled: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const BackupsSubscriptionNotFound = Template.bind({});
|
|
|
|
BackupsSubscriptionNotFound.args = {
|
|
|
|
initialPage: Page.Backups,
|
|
|
|
backupFeatureEnabled: true,
|
|
|
|
backupSubscriptionStatus: {
|
|
|
|
status: 'not-found',
|
|
|
|
},
|
|
|
|
cloudBackupStatus: {
|
|
|
|
mediaSize: 539_249_410_039,
|
|
|
|
protoSize: 100_000_000,
|
|
|
|
createdAt: new Date(Date.now() - WEEK).getTime(),
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const BackupsSubscriptionExpired = Template.bind({});
|
|
|
|
BackupsSubscriptionExpired.args = {
|
|
|
|
initialPage: Page.Backups,
|
|
|
|
backupFeatureEnabled: true,
|
|
|
|
backupSubscriptionStatus: {
|
|
|
|
status: 'expired',
|
|
|
|
},
|
|
|
|
};
|
2025-04-15 16:04:30 -07:00
|
|
|
|
|
|
|
export const Internal = Template.bind({});
|
|
|
|
Internal.args = {
|
|
|
|
initialPage: Page.Internal,
|
|
|
|
isInternalUser: true,
|
|
|
|
};
|
2025-05-15 13:58:20 +10:00
|
|
|
|
|
|
|
export const UpdateAvailable = Template.bind({});
|
|
|
|
UpdateAvailable.args = {
|
|
|
|
hasPendingUpdate: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const UpdateDownloaded = Template.bind({});
|
|
|
|
UpdateDownloaded.args = {
|
|
|
|
isUpdateDownloaded: true,
|
|
|
|
};
|
2025-05-16 01:36:12 +10:00
|
|
|
|
|
|
|
export const NavTabsCollapsed = Template.bind({});
|
|
|
|
NavTabsCollapsed.args = {
|
|
|
|
navTabsCollapsed: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const NavTabsCollapsedWithBadges = Template.bind({});
|
|
|
|
NavTabsCollapsedWithBadges.args = {
|
|
|
|
navTabsCollapsed: true,
|
|
|
|
hasFailedStorySends: false,
|
|
|
|
otherTabsUnreadStats: {
|
|
|
|
unreadCount: 1,
|
|
|
|
unreadMentionsCount: 2,
|
|
|
|
markedUnread: false,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const NavTabsCollapsedWithExclamation = Template.bind({});
|
|
|
|
NavTabsCollapsedWithExclamation.args = {
|
|
|
|
navTabsCollapsed: true,
|
|
|
|
hasFailedStorySends: true,
|
|
|
|
otherTabsUnreadStats: {
|
|
|
|
unreadCount: 1,
|
|
|
|
unreadMentionsCount: 2,
|
|
|
|
markedUnread: true,
|
|
|
|
},
|
|
|
|
};
|