mirror of
https://github.com/logto-io/logto.git
synced 2025-01-06 20:40:08 -05:00
feat(console): hide the check readme button for the email service connector (#4119)
This commit is contained in:
parent
244537ca03
commit
460fb940f2
1 changed files with 22 additions and 17 deletions
|
@ -155,6 +155,9 @@ function ConnectorDetails() {
|
||||||
{data.type === ConnectorType.Email && data.usage !== undefined && (
|
{data.type === ConnectorType.Email && data.usage !== undefined && (
|
||||||
<EmailUsage usage={data.usage} />
|
<EmailUsage usage={data.usage} />
|
||||||
)}
|
)}
|
||||||
|
{/* Note: hide the 'Check README' button for the email service connector since it's provided by Logto and no setup guide is needed */}
|
||||||
|
{data.connectorId !== ServiceConnector.Email && (
|
||||||
|
<>
|
||||||
<Button
|
<Button
|
||||||
title="connector_details.check_readme"
|
title="connector_details.check_readme"
|
||||||
size="large"
|
size="large"
|
||||||
|
@ -172,6 +175,8 @@ function ConnectorDetails() {
|
||||||
>
|
>
|
||||||
<Markdown className={styles.readme}>{data.readme}</Markdown>
|
<Markdown className={styles.readme}>{data.readme}</Markdown>
|
||||||
</Drawer>
|
</Drawer>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<ActionMenu
|
<ActionMenu
|
||||||
buttonProps={{ icon: <More className={styles.moreIcon} />, size: 'large' }}
|
buttonProps={{ icon: <More className={styles.moreIcon} />, size: 'large' }}
|
||||||
title={t('general.more_options')}
|
title={t('general.more_options')}
|
||||||
|
|
Loading…
Reference in a new issue