From b3ff35a75cf04e4aba2712a9d0897257cf79af82 Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Tue, 25 Sep 2018 14:46:14 +0200 Subject: Move URLs to backend in their own file --- app/javascript/flavours/glitch/features/composer/warning/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/javascript/flavours/glitch/features/composer/warning') diff --git a/app/javascript/flavours/glitch/features/composer/warning/index.js b/app/javascript/flavours/glitch/features/composer/warning/index.js index c225b50e8..8be8acbce 100644 --- a/app/javascript/flavours/glitch/features/composer/warning/index.js +++ b/app/javascript/flavours/glitch/features/composer/warning/index.js @@ -2,6 +2,7 @@ import React from 'react'; import Motion from 'flavours/glitch/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { defineMessages, FormattedMessage } from 'react-intl'; +import { profileLink } from 'flavours/glitch/util/backend_links'; // This is the spring used with our motion. const motionSpring = spring(1, { damping: 35, stiffness: 400 }); @@ -20,6 +21,10 @@ const messages = defineMessages({ // The component. export default function ComposerWarning () { + let lockedLink = ; + if (profileLink !== undefined) { + lockedLink = {lockedLink}; + } return ( }} + values={{ locked: lockedLink }} /> )} -- cgit