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:
parent
6726bcaa0f
commit
89f8476751
2 changed files with 5 additions and 4 deletions
|
@ -5,6 +5,8 @@
|
|||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.notice {
|
||||
.notes {
|
||||
font: var(--font-body-2);
|
||||
color: var(--color-text-secondary);
|
||||
margin-top: _.unit(3);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue