Skip to content

Commit

Permalink
validation button color change?
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghoonio committed Nov 21, 2024
1 parent 26b5237 commit aed8866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/components/project/validation/validation-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ValidationResult = (props: Props) => {
const [validationModalIsOpen, setValidationModalIsOpen] = useState(false);

let wrapperClassName = 'py-1 px-2 rounded-1 bg-opacity-10 validation-button';
if (!shouldValidate) {
if (shouldValidate) {
wrapperClassName += ' border border-warning text-warning bg-warning';
} else if (isValidating) {
wrapperClassName += ' border border-warning text-warning bg-warning';
Expand Down Expand Up @@ -48,7 +48,7 @@ export const ValidationResult = (props: Props) => {
className={wrapperClassName}
>
<div className="d-flex flex-row align-items-center gap-2 text-sm py-0">
{isValidating || !shouldValidate ? (
{isValidating || shouldValidate ? (
<span className="bg-warning text-warning rounded-pill validation-badge"></span>
) : validationResult?.valid ? (
<span className="bg-success text-success rounded-pill validation-badge"></span>
Expand Down

0 comments on commit aed8866

Please sign in to comment.