mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
refactor: improve code readability and maintainability in SDK options and icon picker
- Reformatted the fullAccess and chat tool presets in sdk-options.ts for better readability. - Simplified the return statement in icon-picker.tsx for cleaner code. - Removed the board-background-persistence.spec.ts test file as it is no longer needed.
This commit is contained in:
@@ -79,9 +79,7 @@ export function IconPicker({ selectedIcon, onSelectIcon }: IconPickerProps) {
|
||||
<div className="flex items-center gap-2 flex-1">
|
||||
{(() => {
|
||||
const IconComponent = getIconComponent(selectedIcon);
|
||||
return IconComponent ? (
|
||||
<IconComponent className="w-5 h-5 text-brand-500" />
|
||||
) : null;
|
||||
return IconComponent ? <IconComponent className="w-5 h-5 text-brand-500" /> : null;
|
||||
})()}
|
||||
<span className="text-sm font-medium">{selectedIcon}</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user