forked from Ivasoft/mattermost-mobile
* added chevron to menu item component * starting with the skeleton * starting with the skeleton * starting with the skeleton * starting with the skeleton * remove extra line * tested on tablets * some corrections * corrections as per review * starting with notification skeleton * attached notification settings to navigation * added auto responder * update translation * update snapshot * updated snapshot * correction after review * removed unnecessary screen * refactored * updated the testIDs * Update Package.resolved * refactor * removed Mattermost as default server name * fix ts * refactored settings constant * correction after review Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
62 lines
1.8 KiB
TypeScript
62 lines
1.8 KiB
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {t} from '@i18n';
|
|
|
|
export const SettingOptionConfig = {
|
|
notification: {
|
|
defaultMessage: 'Notifications',
|
|
i18nId: t('general_settings.notifications'),
|
|
iconName: 'bell-outline',
|
|
testID: 'general_settings.notifications',
|
|
},
|
|
display: {
|
|
defaultMessage: 'Display',
|
|
i18nId: t('general_settings.display'),
|
|
iconName: 'layers-outline',
|
|
testID: 'general_settings.display',
|
|
},
|
|
advanced_settings: {
|
|
defaultMessage: 'Advanced Settings',
|
|
i18nId: t('general_settings.advanced_settings'),
|
|
iconName: 'tune',
|
|
testID: 'general_settings.advanced',
|
|
},
|
|
about: {
|
|
defaultMessage: 'About {appTitle}',
|
|
i18nId: t('general_settings.about'),
|
|
iconName: 'information-outline',
|
|
testID: 'general_settings.about',
|
|
},
|
|
help: {
|
|
defaultMessage: 'Help',
|
|
i18nId: t('general_settings.help'),
|
|
testID: 'general_settings.help',
|
|
showArrow: false,
|
|
},
|
|
};
|
|
|
|
export const NotificationsOptionConfig = {
|
|
mentions: {
|
|
iconName: 'at',
|
|
testID: 'notification_settings.mentions_replies.action',
|
|
},
|
|
push_notification: {
|
|
defaultMessage: 'Push Notifications',
|
|
i18nId: t('mobile.notification_settings.mobile'),
|
|
iconName: 'cellphone',
|
|
testID: 'notification_settings.push_notification',
|
|
},
|
|
automatic_dm_replies: {
|
|
defaultMessage: 'Automatic Direct Message Replies',
|
|
i18nId: t('mobile.notification_settings.ooo_auto_responder'),
|
|
iconName: 'reply-outline',
|
|
testID: 'notification_settings.automatic_dm_replies',
|
|
},
|
|
};
|
|
|
|
export default {
|
|
...SettingOptionConfig,
|
|
...NotificationsOptionConfig,
|
|
};
|