mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
#816: Fixed Logic for Custom Icons in Action Field
This commit is contained in:
@@ -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 />;
|
||||
|
||||
Reference in New Issue
Block a user