#816: Fixed Logic for Custom Icons in Action Field

This commit is contained in:
Miriam Shams-Rainey
2022-09-16 23:44:49 -04:00
parent a0b0631a71
commit 33dd82ac6b

View File

@@ -28,6 +28,16 @@ const replacer = (data: any) => (m: string, key: string) => {
};
const getStateIcon = (actionState: "undo" | "redo" | string, config: any) => {
if (!get(config, "customIcons.enabled", false)) {
switch (actionState) {
case "undo":
return <UndoIcon />;
case "redo":
return <RedoIcon />;
default:
return <RunIcon />;
}
}
switch (actionState) {
case "undo":
return get(config, "customIcons.undo") || <UndoIcon />;