Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
caroluchoa committed Feb 28, 2024
1 parent 4085c28 commit 65f7840
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions loaders/availableIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const icons = Object.keys(AvailableIcons).map((iconName) => ({
label: iconName,
}));

// Used to load all available icons that will be used for IconSelect widgets.
export default function IconsLoader(
_props: unknown,
req: Request,
Expand Down
2 changes: 2 additions & 0 deletions loaders/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const icons = [
{ component: "L", label: "Large", prop: "fontSize" },
];

// Used to load icons that will be used for ButtonGroup widgets.
// The file adminIcons.ts contains all available icons in a string format, and this loader maps them to the format expected by the button-group widget.
export default function IconsLoader(
_props: unknown,
req: Request,
Expand Down
2 changes: 1 addition & 1 deletion static/adminIcons.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Icons for button group widget
// Icons for ButtonGroup widget

export const Left = `<svg id="Left" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" clip-rule="evenodd" d="M3.33333 2.5C3.79357 2.5 4.16667 2.8731 4.16667 3.33333V16.6667C4.16667 17.1269 3.79357 17.5 3.33333 17.5C2.8731 17.5 2.5 17.1269 2.5 16.6667V3.33333C2.5 2.8731 2.8731 2.5 3.33333 2.5Z" fill="inherit"/>
Expand Down

0 comments on commit 65f7840

Please sign in to comment.