0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): doc button and get help link (#3976)

This commit is contained in:
Darcy Ye 2023-06-06 17:03:57 +08:00 committed by GitHub
parent 1ad17bcb38
commit 0c1744e77d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 11 deletions

View file

@ -33,5 +33,9 @@
.button {
width: 90px;
}
.link {
text-decoration: none;
}
}
}

View file

@ -43,15 +43,9 @@ function ContactModal({ isOpen, onCancel }: Props) {
<DynamicT forKey={description} />
</div>
</div>
<div>
<Button
type="outline"
title={label}
to={link}
className={styles.button}
onClick={() => window.open(link)}
/>
</div>
<a href={link} target="_blank" className={styles.link} rel="noopener">
<Button type="outline" title={label} className={styles.button} />
</a>
</div>
))}
</div>

View file

@ -9,8 +9,12 @@ function DocumentNavButton() {
const { documentationSiteUrl } = useDocumentationUrl();
return (
<div className={styles.documentNavButton}>
<DocumentIcon className={styles.icon} />
<TextLink href={documentationSiteUrl} target="_blank" className={styles.textLink}>
<TextLink
href={documentationSiteUrl}
target="_blank"
className={styles.textLink}
icon={<DocumentIcon className={styles.icon} />}
>
<DangerousRaw>Docs</DangerousRaw>
</TextLink>
</div>