diff --git a/src/components/TypeSelector.tsx b/src/components/TypeSelector.tsx index d85d7109..b23bf4ba 100644 --- a/src/components/TypeSelector.tsx +++ b/src/components/TypeSelector.tsx @@ -22,17 +22,19 @@ function TypeSelectorItem({ type, typeColorKeys, typeIconKeys }: { function ReadOnlyType({ isA, customColorKey, onNavigate }: { isA?: string | null; customColorKey?: string | null; onNavigate?: (target: string) => void }) { if (!isA) return null return ( -
+
Type - {onNavigate ? ( - - ) : ( - {isA} - )} +
+ {onNavigate ? ( + + ) : ( + {isA} + )} +
) } @@ -55,23 +57,24 @@ export function TypeSelector({ isA, customColorKey, availableTypes, typeColorKey const typeLightColor = isA ? getTypeLightColor(isA, typeColorKeys[isA] ?? customColorKey) : undefined return ( -
+
Type - onUpdateProperty('type', v === TYPE_NONE ? null : v)}> + + + None @@ -81,7 +84,8 @@ export function TypeSelector({ isA, customColorKey, availableTypes, typeColorKey ))} - + +
) }