forked from mattermost/mattermost-webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
notices.jsx
35 lines (32 loc) · 1.28 KB
/
notices.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
import mattermostIcon from 'images/icon50x50.png';
// Notices are objects with the following fields:
// - name - string identifier
// - adminOnly - set to true if only system admins should see this message
// - icon - the image to display for the notice icon
// - title - JSX node to display for the notice title
// - body - JSX node to display for the notice body
//
// Order is important! The notices at the top are shown first.
export default [
{
name: 'apiv3_deprecation',
adminOnly: true,
title: (
<FormattedHTMLMessage
id='system_notice.title'
defaultMessage='<strong>System Message</strong> from Mattermost'
/>
),
icon: mattermostIcon,
body: (
<FormattedHTMLMessage
id='system_notice.body.api3'
defaultMessage='If you’ve created or installed integrations in the last two years, find out how <a href="https://about.mattermost.com/default-apiv3-deprecation-guide" target="_blank">upcoming changes</a> may affect them.'
/>
),
},
];