feat: Unified icon picker (#7038)
This commit is contained in:
@@ -12,7 +12,8 @@ type Props = Optional<
|
||||
| "title"
|
||||
| "text"
|
||||
| "content"
|
||||
| "emoji"
|
||||
| "icon"
|
||||
| "color"
|
||||
| "collectionId"
|
||||
| "parentDocumentId"
|
||||
| "importId"
|
||||
@@ -36,7 +37,8 @@ type Props = Optional<
|
||||
export default async function documentCreator({
|
||||
title = "",
|
||||
text = "",
|
||||
emoji,
|
||||
icon,
|
||||
color,
|
||||
state,
|
||||
id,
|
||||
urlId,
|
||||
@@ -96,9 +98,9 @@ export default async function documentCreator({
|
||||
importId,
|
||||
sourceMetadata,
|
||||
fullWidth: templateDocument ? templateDocument.fullWidth : fullWidth,
|
||||
emoji: templateDocument ? templateDocument.emoji : emoji,
|
||||
icon: templateDocument ? templateDocument.emoji : emoji,
|
||||
color: templateDocument ? templateDocument.color : null,
|
||||
emoji: templateDocument ? templateDocument.emoji : icon,
|
||||
icon: templateDocument ? templateDocument.emoji : icon,
|
||||
color: templateDocument ? templateDocument.color : color,
|
||||
title: TextHelper.replaceTemplateVariables(
|
||||
templateDocument ? templateDocument.title : title,
|
||||
user
|
||||
|
||||
Reference in New Issue
Block a user