Add link back to source party
This commit is contained in:
parent
86b48f52c1
commit
9a6e333e9e
3 changed files with 39 additions and 9 deletions
|
|
@ -31,6 +31,15 @@
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.IconButton.medium {
|
||||||
|
height: inherit;
|
||||||
|
padding: $unit-half;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&.Contained {
|
&.Contained {
|
||||||
background: var(--button-contained-bg);
|
background: var(--button-contained-bg);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -270,15 +270,21 @@
|
||||||
.Left {
|
.Left {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|
||||||
h1 {
|
.Header {
|
||||||
font-size: $font-xlarge;
|
align-items: center;
|
||||||
font-weight: $normal;
|
display: flex;
|
||||||
text-align: left;
|
gap: $unit;
|
||||||
margin-bottom: $unit;
|
margin-bottom: $unit;
|
||||||
color: var(--text-primary);
|
|
||||||
|
|
||||||
&.empty {
|
h1 {
|
||||||
color: var(--text-secondary);
|
font-size: $font-xlarge;
|
||||||
|
font-weight: $normal;
|
||||||
|
text-align: left;
|
||||||
|
color: var(--text-primary);
|
||||||
|
|
||||||
|
&.empty {
|
||||||
|
color: var(--text-secondary);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ import { youtube } from '~utils/youtube'
|
||||||
import CheckIcon from '~public/icons/Check.svg'
|
import CheckIcon from '~public/icons/Check.svg'
|
||||||
import CrossIcon from '~public/icons/Cross.svg'
|
import CrossIcon from '~public/icons/Cross.svg'
|
||||||
import EditIcon from '~public/icons/Edit.svg'
|
import EditIcon from '~public/icons/Edit.svg'
|
||||||
|
import RemixIcon from '~public/icons/Remix.svg'
|
||||||
|
|
||||||
import type { DetailsObject } from 'types'
|
import type { DetailsObject } from 'types'
|
||||||
|
|
||||||
|
|
@ -694,7 +695,7 @@ const PartyDetails = (props: Props) => {
|
||||||
const remixSection = () => {
|
const remixSection = () => {
|
||||||
return (
|
return (
|
||||||
<section className="Remixes">
|
<section className="Remixes">
|
||||||
<h3>Remixes</h3>
|
<h3>{t('remixes')}</h3>
|
||||||
{<GridRepCollection>{renderRemixes()}</GridRepCollection>}
|
{<GridRepCollection>{renderRemixes()}</GridRepCollection>}
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
|
|
@ -704,7 +705,21 @@ const PartyDetails = (props: Props) => {
|
||||||
<section className="DetailsWrapper">
|
<section className="DetailsWrapper">
|
||||||
<div className="PartyInfo">
|
<div className="PartyInfo">
|
||||||
<div className="Left">
|
<div className="Left">
|
||||||
<h1 className={name ? '' : 'empty'}>{name ? name : t('no_title')}</h1>
|
<div className="Header">
|
||||||
|
<h1 className={name ? '' : 'empty'}>
|
||||||
|
{name ? name : t('no_title')}
|
||||||
|
</h1>
|
||||||
|
{party.remix && party.sourceParty ? (
|
||||||
|
<Link href={`/p/${party.sourceParty.shortcode}`} passHref>
|
||||||
|
<Button
|
||||||
|
className="IconButton Blended"
|
||||||
|
leftAccessoryIcon={<RemixIcon />}
|
||||||
|
/>
|
||||||
|
</Link>
|
||||||
|
) : (
|
||||||
|
''
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
<div className="attribution">
|
<div className="attribution">
|
||||||
{renderUserBlock()}
|
{renderUserBlock()}
|
||||||
{party.raid ? linkedRaidBlock(party.raid) : ''}
|
{party.raid ? linkedRaidBlock(party.raid) : ''}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue