Add letter icon option for collections

This commit is contained in:
Tom Moor
2023-09-15 08:54:22 -04:00
parent b79f86d347
commit 6b4feb51e0
9 changed files with 107 additions and 25 deletions

View File

@@ -100,7 +100,12 @@ const CollectionEdit = ({ collectionId, onSubmit }: Props) => {
autoFocus
flex
/>
<IconPicker onChange={handleChange} color={color} icon={icon} />
<IconPicker
onChange={handleChange}
color={color}
initial={name[0]}
icon={icon}
/>
</Flex>
<InputSelect
label={t("Sort in sidebar")}

View File

@@ -141,6 +141,7 @@ class CollectionNew extends React.Component<Props> {
<IconPicker
onOpen={this.handleIconPickerOpen}
onChange={this.handleChange}
initial={this.name[0]}
color={this.color}
icon={this.icon}
/>