diff options
author | 2018-01-30 12:56:12 +0100 | |
---|---|---|
committer | 2018-01-30 12:56:12 +0100 | |
commit | a72b209c304d0eeb19604de775c12721e90d67e9 (patch) | |
tree | f0a41c9f5162ea9f44551ed9864cd09c562b4527 /src | |
parent | Merge branch 'fix-invite-screen' into feature/invite-button (diff) | |
download | ferdium-app-a72b209c304d0eeb19604de775c12721e90d67e9.tar.gz ferdium-app-a72b209c304d0eeb19604de775c12721e90d67e9.tar.zst ferdium-app-a72b209c304d0eeb19604de775c12721e90d67e9.zip |
ADDED invite button on settings navigation
currently goes to `auth/signup/invite` route only
Diffstat (limited to 'src')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 11 | ||||
-rw-r--r-- | src/components/settings/services/ServiceError.js | 2 | ||||
-rw-r--r-- | src/i18n/locales/en-US.json | 1 |
3 files changed, 13 insertions, 1 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index fea8d682d..3b4ada768 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -21,6 +21,10 @@ const messages = defineMessages({ | |||
21 | id: 'settings.navigation.settings', | 21 | id: 'settings.navigation.settings', |
22 | defaultMessage: '!!!Settings', | 22 | defaultMessage: '!!!Settings', |
23 | }, | 23 | }, |
24 | inviteFriends: { | ||
25 | id: 'settings.navigation.inviteFriends', | ||
26 | defaultMessage: '!!!Invite Friends', | ||
27 | }, | ||
24 | logout: { | 28 | logout: { |
25 | id: 'settings.navigation.logout', | 29 | id: 'settings.navigation.logout', |
26 | defaultMessage: '!!!Logout', | 30 | defaultMessage: '!!!Logout', |
@@ -70,6 +74,13 @@ export default class SettingsNavigation extends Component { | |||
70 | > | 74 | > |
71 | {intl.formatMessage(messages.settings)} | 75 | {intl.formatMessage(messages.settings)} |
72 | </Link> | 76 | </Link> |
77 | <Link | ||
78 | to="/auth/signup/invite" | ||
79 | className="settings-navigation__link" | ||
80 | activeClassName="is-active" | ||
81 | > | ||
82 | {intl.formatMessage(messages.inviteFriends)} | ||
83 | </Link> | ||
73 | <span className="settings-navigation__expander" /> | 84 | <span className="settings-navigation__expander" /> |
74 | <Link | 85 | <Link |
75 | to="/auth/logout" | 86 | to="/auth/logout" |
diff --git a/src/components/settings/services/ServiceError.js b/src/components/settings/services/ServiceError.js index 923053296..1f1512927 100644 --- a/src/components/settings/services/ServiceError.js +++ b/src/components/settings/services/ServiceError.js | |||
@@ -26,7 +26,7 @@ const messages = defineMessages({ | |||
26 | }); | 26 | }); |
27 | 27 | ||
28 | @observer | 28 | @observer |
29 | export default class EditServiceForm extends Component { | 29 | export default class ServiceError extends Component { |
30 | static contextTypes = { | 30 | static contextTypes = { |
31 | intl: intlShape, | 31 | intl: intlShape, |
32 | }; | 32 | }; |
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index 6162455bb..0c59ba432 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json | |||
@@ -92,6 +92,7 @@ | |||
92 | "settings.navigation.yourServices": "Your services", | 92 | "settings.navigation.yourServices": "Your services", |
93 | "settings.navigation.account": "Account", | 93 | "settings.navigation.account": "Account", |
94 | "settings.navigation.settings": "Settings", | 94 | "settings.navigation.settings": "Settings", |
95 | "settings.navigation.inviteFriends": "Invite Friends", | ||
95 | "settings.navigation.logout": "Logout", | 96 | "settings.navigation.logout": "Logout", |
96 | "settings.recipes.headline": "Available services", | 97 | "settings.recipes.headline": "Available services", |
97 | "settings.recipes.mostPopular": "Most popular", | 98 | "settings.recipes.mostPopular": "Most popular", |