Skip to content

Commit

Permalink
fix(Data Mapper): Fixes custom functions category branding (#4382)
Browse files Browse the repository at this point in the history
* Fixes category name for custom functions

* Fixes error when adding custom function to designer surface
  • Loading branch information
chris-w-dev committed Mar 17, 2024
1 parent 2f5e3b5 commit 1327f8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/data-mapper/src/lib/constants/FunctionConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface FunctionGroupBranding {
export const customBranding: FunctionGroupBranding = {
displayName: 'Custom',
colorTokenName: 'colorFnCategoryCollection',
icon: <Collection20Regular />,
icon: <Wrench20Regular />,
};

export const collectionBranding: FunctionGroupBranding = {
Expand Down
3 changes: 3 additions & 0 deletions libs/data-mapper/src/lib/utils/Icon.Utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,9 @@ export const iconForFunctionCategory = (functionCategory: FunctionCategory) => {
case FunctionCategory.Conversion: {
return ArrowSwap20Regular;
}
case FunctionCategory.Custom: {
return Wrench20Regular;
}
case FunctionCategory.DateTime: {
return CalendarClock20Regular;
}
Expand Down

0 comments on commit 1327f8d

Please sign in to comment.