GdprBanner: conditionally show "Learn more" button
This commit is contained in:
parent
d422bdf3d3
commit
4f0e104fc4
1 changed files with 7 additions and 3 deletions
|
@ -44,9 +44,13 @@ const GdprBanner: React.FC = () => {
|
|||
</Stack>
|
||||
|
||||
<HStack space={2} justifyContent='end'>
|
||||
<Button theme='secondary' to='/login'>
|
||||
{soapbox.gdprUrl && (
|
||||
<a href={soapbox.gdprUrl} tabIndex={-1} className='inline-flex'>
|
||||
<Button theme='secondary'>
|
||||
<FormattedMessage id='gdpr.learn_more' defaultMessage='Learn more' />
|
||||
</Button>
|
||||
</a>
|
||||
)}
|
||||
|
||||
<Button theme='accent' onClick={handleAccept}>
|
||||
<FormattedMessage id='gdpr.accept' defaultMessage='Accept' />
|
||||
|
|
Loading…
Reference in a new issue