feat(component): adjust notify styles (#6578)

Change the styles of `notify.error`, `notify.warning`, and `notify.success` from `alert` to `normal`
Add custom `iconColor` option
This commit is contained in:
JimmFly
2024-04-17 12:36:42 +00:00
parent 8b66c1d752
commit bcee1bbd81
7 changed files with 48 additions and 8 deletions

View File

@@ -70,7 +70,8 @@ export const AIOnboardingEdgeless = ({
{
title: t['com.affine.ai-onboarding.edgeless.title'](),
message: t['com.affine.ai-onboarding.edgeless.message'](),
icon: <AiIcon color={cssVar('processingColor')} />,
icon: <AiIcon />,
iconColor: cssVar('brandColor'),
thumb: <EdgelessOnboardingAnimation />,
alignMessage: 'icon',
onDismiss,

View File

@@ -44,9 +44,8 @@ export const AIResume = ({ ...btnProps }: AIResumeProps) => {
SubscriptionPlan.AI
);
notify({
icon: (
<SingleSelectSelectSolidIcon color={cssVar('processingColor')} />
),
icon: <SingleSelectSelectSolidIcon />,
iconColor: cssVar('processingColor'),
title:
t['com.affine.payment.ai.action.resume.confirm.notify.title'](),
message: