0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-17 22:31:28 -05:00

refactor(console): add space to learn more links ()

This commit is contained in:
Xiao Yijun 2022-12-27 21:34:32 +08:00 committed by GitHub
parent 45800d1cfe
commit 52265b0b03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions
packages/console/src/components/FormCard

View file

@ -23,10 +23,6 @@
.description {
font: var(--font-body-medium);
color: var(--color-text-secondary);
.link {
margin-left: _.unit(1);
}
}
}

View file

@ -24,9 +24,12 @@ const FormCard = ({ title, description, learnMoreLink, children }: Props) => {
<div className={styles.description}>
{t(description)}
{learnMoreLink && (
<TextLink href={learnMoreLink} target="_blank" rel="noopener" className={styles.link}>
{t('general.learn_more')}
</TextLink>
<>
{' '}
<TextLink href={learnMoreLink} target="_blank" rel="noopener">
{t('general.learn_more')}
</TextLink>
</>
)}
</div>
)}