Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#816: Fixed Logic for Custom Icons in Action Field #819

Merged
merged 2 commits into from
Sep 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Connect to your database, manage data in table-UI with role based access control

Set up Rowy on your Google Cloud Platform project with this easy deploy button.

[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.rowy.app/)
[<img width="250" alt="Guided quick start button" src="https://user-images.githubusercontent.com/307298/185548050-e9208fb6-fe53-4c84-bbfa-53c08e03c15f.png">](https://rowy.app/)

https://deploy.rowy.app/
https://rowy.app

## Documentation

Expand Down Expand Up @@ -91,7 +91,7 @@ https://user-images.githubusercontent.com/307298/157185793-f67511cd-7b7b-4229-95

Set up Rowy on your Google Cloud project with this one-click deploy button. Your data and cloud functions stay on your own Firestore/GCP.

[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.rowy.app/)
[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://rowy.app/)

The one-click deploy makes the process of setting up easy with a step by step
guide and ensures your project is setup correctly.
Expand Down
10 changes: 10 additions & 0 deletions src/components/fields/Action/ActionFab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 />;
Expand Down