Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: fix color and text of status pendant

QiShaoXuanac84c16a4ada
diff --git a/libs/components/editor-core/src/block-pendant/config.ts b/libs/components/editor-core/src/block-pendant/config.ts
index 077a795142..74471647d2 100644
--- a/libs/components/editor-core/src/block-pendant/config.ts
+++ b/libs/components/editor-core/src/block-pendant/config.ts
@@ -98,8 +98,8 @@ export const pendantConfig: { [key: string]: PendantConfig } = {
},
[PendantTypes.Status]: {
iconName: IconNames.STATUS,
- background: ['#C5FBE0', '#FFF5AB', '#FFCECE', '#E3DEFF'],
- color: ['#05683D', '#896406', '#AF1212', '#511AAB'],
+ background: ['#FFCECE', '#FFF5AB', '#C5FBE0', '#E3DEFF'],
+ color: ['#AF1212', '#896406', '#05683D', '#511AAB'],
},
[PendantTypes.Select]: {
iconName: IconNames.SINGLE_SELECT,
diff --git a/libs/components/editor-core/src/block-pendant/utils.ts b/libs/components/editor-core/src/block-pendant/utils.ts
index 63a3344a91..bebdef1925 100644
--- a/libs/components/editor-core/src/block-pendant/utils.ts
+++ b/libs/components/editor-core/src/block-pendant/utils.ts
@@ -88,7 +88,7 @@ export const generateInitialOptions = (
) => {
if (type === PendantTypes.Status) {
return [
- generateBasicOption({ index: 0, iconConfig, name: 'No Started' }),
+ generateBasicOption({ index: 0, iconConfig, name: 'Not Started' }),
generateBasicOption({
index: 1,
iconConfig,