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 { .button {
width: 90px; width: 90px;
} }
.link {
text-decoration: none;
}
} }
} }

View file

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

View file

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