diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-03-29 14:43:20 +0200 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2018-03-29 14:59:20 +0200 |
commit | a59c146bf866e28840db37ffe9cfa9759a6497ad (patch) | |
tree | 661250627b8e59bfe143151267c0cd9761feb2ca /app/javascript/flavours/glitch/features/account | |
parent | 4e45954280390f90dcacc2fd0a33bf75114b38d6 (diff) |
[Glitch] Profile redirect notes
Port WebUI changes from 58cede4808baa4db6cc143b80ef23e8179a8415b
Diffstat (limited to 'app/javascript/flavours/glitch/features/account')
-rw-r--r-- | app/javascript/flavours/glitch/features/account/components/header.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/account/components/header.js b/app/javascript/flavours/glitch/features/account/components/header.js index f346bd108..1170bdb49 100644 --- a/app/javascript/flavours/glitch/features/account/components/header.js +++ b/app/javascript/flavours/glitch/features/account/components/header.js @@ -10,6 +10,7 @@ import IconButton from 'flavours/glitch/components/icon_button'; import emojify from 'flavours/glitch/util/emoji'; import { me } from 'flavours/glitch/util/initial_state'; import { processBio } from 'flavours/glitch/util/bio_metadata'; +import classNames from 'classnames'; const messages = defineMessages({ unfollow: { id: 'account.unfollow', defaultMessage: 'Unfollow' }, @@ -75,11 +76,15 @@ export default class Header extends ImmutablePureComponent { } } + if (account.get('moved')) { + actionBtn = ''; + } + const { text, metadata } = processBio(account.get('note')); return ( <div className='account__header__wrapper'> - <div className='account__header' style={{ backgroundImage: `url(${account.get('header')})` }}> + <div className={classNames('account__header', { inactive: !!account.get('moved') })} style={{ backgroundImage: `url(${account.get('header')})` }}> <div> <a href={account.get('url')} |