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

Davidmotson.release button #67

Merged
merged 2 commits into from
Mar 5, 2024
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import useStyles from "./styles";

const toggleIsDisabled = {
[RELEASE_STATES.SCHEDULED]: true,
[RELEASE_STATES.CODE_FREEZE]: true,
[RELEASE_STATES.CODE_FREEZE]: false,
[RELEASE_STATES.RELEASE_DAY]: false,
[RELEASE_STATES.RELEASED]: false,
[RELEASE_STATES.DELAYED]: false,
Expand All @@ -33,16 +33,11 @@ function ToggleReleaseButton({release, toggling, handleReleasedToggle}) {
buttonIcon = <History />;
buttonClass = classes.unemphasizedButton;
break;
case RELEASE_STATES.DELAYED:
case RELEASE_STATES.RELEASE_DAY:
default:
buttonText = "Mark as Released";
buttonIcon = <Check />;
buttonClass = classes.emphasizedButton;
break;
default:
buttonText = "";
buttonIcon = null;
buttonClass = classes.defaultButton;
}

return (
Expand Down
Loading