Move URLs to backend in their own file

This commit is contained in:
Thibaut Girka
2018-09-25 14:46:14 +02:00
committed by ThibG
parent a77ee0bb6d
commit b3ff35a75c
10 changed files with 74 additions and 25 deletions

View File

@ -5,6 +5,7 @@ import { injectIntl, defineMessages } from 'react-intl';
// Our imports
import LocalSettingsNavigationItem from './item';
import { preferencesLink } from 'flavours/glitch/util/backend_links';
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
@ -71,7 +72,7 @@ export default class LocalSettingsNavigation extends React.PureComponent {
/>
<LocalSettingsNavigationItem
active={index === 5}
href='/settings/preferences'
href={ preferencesLink }
index={5}
icon='sliders'
title={intl.formatMessage(messages.preferences)}