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

feat(console): hide the check readme button for the email service connector (#4119)

This commit is contained in:
Xiao Yijun 2023-07-05 12:31:05 +08:00 committed by GitHub
parent 244537ca03
commit 460fb940f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -155,23 +155,28 @@ function ConnectorDetails() {
{data.type === ConnectorType.Email && data.usage !== undefined && ( {data.type === ConnectorType.Email && data.usage !== undefined && (
<EmailUsage usage={data.usage} /> <EmailUsage usage={data.usage} />
)} )}
<Button {/* Note: hide the 'Check README' button for the email service connector since it's provided by Logto and no setup guide is needed */}
title="connector_details.check_readme" {data.connectorId !== ServiceConnector.Email && (
size="large" <>
onClick={() => { <Button
setIsReadMeOpen(true); title="connector_details.check_readme"
}} size="large"
/> onClick={() => {
<Drawer setIsReadMeOpen(true);
title="connectors.title" }}
subtitle="connectors.subtitle" />
isOpen={isReadMeOpen} <Drawer
onClose={() => { title="connectors.title"
setIsReadMeOpen(false); subtitle="connectors.subtitle"
}} isOpen={isReadMeOpen}
> onClose={() => {
<Markdown className={styles.readme}>{data.readme}</Markdown> setIsReadMeOpen(false);
</Drawer> }}
>
<Markdown className={styles.readme}>{data.readme}</Markdown>
</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')}