diff options
author | 2021-09-14 10:34:04 +0200 | |
---|---|---|
committer | 2021-09-14 10:34:04 +0200 | |
commit | 979ec02c9a1019152be08705986337e470eabb57 (patch) | |
tree | 6021179ad8649112717a499780f475275af487f2 /src/components/ui/FeatureList.js | |
parent | refactor: defensive programming to avoid javascript error for unread badges (diff) | |
download | ferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.gz ferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.zst ferdium-app-979ec02c9a1019152be08705986337e470eabb57.zip |
chore: codebase improvements (#1930)
Diffstat (limited to 'src/components/ui/FeatureList.js')
-rw-r--r-- | src/components/ui/FeatureList.js | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/src/components/ui/FeatureList.js b/src/components/ui/FeatureList.js deleted file mode 100644 index 14e7ec3c4..000000000 --- a/src/components/ui/FeatureList.js +++ /dev/null | |||
@@ -1,99 +0,0 @@ | |||
1 | import React, { Component } from 'react'; | ||
2 | import PropTypes from 'prop-types'; | ||
3 | import { defineMessages, injectIntl } from 'react-intl'; | ||
4 | |||
5 | import { FeatureItem } from './FeatureItem'; | ||
6 | |||
7 | const messages = defineMessages({ | ||
8 | availableRecipes: { | ||
9 | id: 'pricing.features.recipes', | ||
10 | defaultMessage: 'Choose from more than 70 Services', // TODO: Make this dynamic | ||
11 | }, | ||
12 | accountSync: { | ||
13 | id: 'pricing.features.accountSync', | ||
14 | defaultMessage: 'Account Synchronisation', | ||
15 | }, | ||
16 | desktopNotifications: { | ||
17 | id: 'pricing.features.desktopNotifications', | ||
18 | defaultMessage: 'Desktop Notifications', | ||
19 | }, | ||
20 | unlimitedServices: { | ||
21 | id: 'pricing.features.unlimitedServices', | ||
22 | defaultMessage: 'Add unlimited services', | ||
23 | }, | ||
24 | spellchecker: { | ||
25 | id: 'pricing.features.spellchecker', | ||
26 | defaultMessage: 'Spellchecker support', | ||
27 | }, | ||
28 | workspaces: { | ||
29 | id: 'pricing.features.workspaces', | ||
30 | defaultMessage: 'Workspaces', | ||
31 | }, | ||
32 | customWebsites: { | ||
33 | id: 'pricing.features.customWebsites', | ||
34 | defaultMessage: 'Add Custom Websites', | ||
35 | }, | ||
36 | onPremise: { | ||
37 | id: 'pricing.features.onPremise', | ||
38 | defaultMessage: 'On-premise & other Hosted Services', | ||
39 | }, | ||
40 | thirdPartyServices: { | ||
41 | id: 'pricing.features.thirdPartyServices', | ||
42 | defaultMessage: 'Install 3rd party services', | ||
43 | }, | ||
44 | serviceProxies: { | ||
45 | id: 'pricing.features.serviceProxies', | ||
46 | defaultMessage: 'Service Proxies', | ||
47 | }, | ||
48 | teamManagement: { | ||
49 | id: 'pricing.features.teamManagement', | ||
50 | defaultMessage: 'Team Management', | ||
51 | }, | ||
52 | }); | ||
53 | |||
54 | export class FeatureList extends Component { | ||
55 | static propTypes = { | ||
56 | className: PropTypes.string, | ||
57 | featureClassName: PropTypes.string, | ||
58 | }; | ||
59 | |||
60 | static defaultProps = { | ||
61 | className: '', | ||
62 | featureClassName: '', | ||
63 | }; | ||
64 | |||
65 | render() { | ||
66 | const { className, featureClassName } = this.props; | ||
67 | const { intl } = this.props; | ||
68 | |||
69 | const features = [ | ||
70 | messages.availableRecipes, | ||
71 | messages.accountSync, | ||
72 | messages.desktopNotifications, | ||
73 | |||
74 | messages.spellchecker, | ||
75 | |||
76 | messages.workspaces, | ||
77 | messages.customWebsites, | ||
78 | messages.thirdPartyServices, | ||
79 | |||
80 | messages.unlimitedServices, | ||
81 | messages.onPremise, | ||
82 | messages.serviceProxies, | ||
83 | messages.teamManagement, | ||
84 | ]; | ||
85 | |||
86 | return ( | ||
87 | <ul className={className}> | ||
88 | {features.map(feature => ( | ||
89 | <FeatureItem | ||
90 | name={intl.formatMessage(feature)} | ||
91 | className={featureClassName} | ||
92 | /> | ||
93 | ))} | ||
94 | </ul> | ||
95 | ); | ||
96 | } | ||
97 | } | ||
98 | |||
99 | export default injectIntl(FeatureList); | ||