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

refactor(console): update change custom domain notice (#4024)

This commit is contained in:
Xiao Yijun 2023-06-13 11:34:39 +08:00 committed by GitHub
parent 6726bcaa0f
commit 89f8476751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -5,6 +5,8 @@
border-radius: 12px;
}
.notice {
.notes {
font: var(--font-body-2);
color: var(--color-text-secondary);
margin-top: _.unit(3);
}

View file

@ -1,7 +1,6 @@
import { type Domain, DomainStatus } from '@logto/schemas';
import { Trans, useTranslation } from 'react-i18next';
import InlineNotification from '@/components/InlineNotification';
import TextLink from '@/components/TextLink';
import ActivationProcess from './ActivationProcess';
@ -28,7 +27,7 @@ function CustomDomain({ customDomain, onDeleteCustomDomain }: Props) {
)}
</div>
{customDomain.status === DomainStatus.Active && (
<InlineNotification className={styles.notice} severity="success" hasIcon={false}>
<div className={styles.notes}>
<Trans
components={{
// TODO LOG-6298 @xiaoyijun update this link when related docs are ready.
@ -37,7 +36,7 @@ function CustomDomain({ customDomain, onDeleteCustomDomain }: Props) {
>
{t('domain.update_endpoint_notice', { link: t('general.learn_more') })}
</Trans>
</InlineNotification>
</div>
)}
</>
);