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

refactor(console): fix contact us ux (#1547)

This commit is contained in:
Gao Sun 2022-07-14 21:21:52 +08:00 committed by GitHub
parent cba8da41fd
commit 8cd59a5c4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 6 deletions

View file

@ -34,7 +34,7 @@ export const useContacts = (): ContactItem[] => {
icon: isLightMode ? Github : GithubDark,
description: 'contact.github.description',
label: 'contact.github.button',
link: 'https://github.com/logto-io/logto',
link: 'https://github.com/logto-io/logto/issues',
},
{
title: 'contact.email.title',

View file

@ -27,7 +27,7 @@ const Contact = ({ isOpen, onCancel }: Props) => {
<ModalLayout title="contact.title" subtitle="contact.description" onClose={onCancel}>
<div className={styles.main}>
{contacts.map(({ title, icon: ContactIcon, description, label, link }) => (
<div key={title} className={styles.row} onClick={() => window.open(link)}>
<div key={title} className={styles.row}>
<div className={styles.icon}>
<ContactIcon />
</div>
@ -36,7 +36,12 @@ const Contact = ({ isOpen, onCancel }: Props) => {
<div className={styles.description}>{t(description)}</div>
</div>
<div>
<Button type="outline" title={label} className={styles.button} />
<Button
type="outline"
title={label}
className={styles.button}
onClick={() => window.open(link)}
/>
</div>
</div>
))}

View file

@ -10,7 +10,7 @@ const contact = {
github: {
title: 'GitHub',
description: 'Create an issue and submit at GitHub',
button: 'Contact',
button: 'Open',
},
email: {
title: 'Send email',

View file

@ -8,8 +8,8 @@ const contact = {
},
github: {
title: 'GitHub',
description: '通过 GitHub给我们提一个 issue',
button: '马上联系',
description: '通过 GitHub 给我们提一个 issue',
button: '前往页面',
},
email: {
title: '邮件联系',