We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d14ccd0 commit ff785f3Copy full SHA for ff785f3
packages/@sanity/form-builder/src/inputs/PortableText/Toolbar/helpers.tsx
@@ -27,6 +27,10 @@ function getFormatIcon(
27
type: string,
28
schemaIcon?: React.ComponentType | string
29
): React.ComponentType {
30
+ if (schemaIcon) {
31
+ return schemaIcon as React.ComponentType
32
+ }
33
+
34
switch (type) {
35
case 'strong':
36
return FormatBoldIcon
@@ -39,7 +43,7 @@ function getFormatIcon(
39
43
case 'code':
40
44
return FormatCodeIcon
41
45
default:
42
- return schemaIcon || SanityLogoIcon
46
+ return SanityLogoIcon
47
}
48
49
0 commit comments