Skip to content

Commit

Permalink
NU-1804 TimeRangeComponent border issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzuming authored and raphaelsolarski committed Sep 10, 2024
1 parent 51af897 commit a8f5484
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { Formatter, FormatterType, spelFormatters, typeFormatters } from "../For
import { CronEditorStyled } from "./CronEditorStyled";
import { ExtendedEditor } from "../Editor";
import { FieldError } from "../../Validators";
import { nodeValue } from "../../../NodeDetailsContent/NodeTableStyled";

export type CronExpression = string;

Expand Down Expand Up @@ -73,7 +74,7 @@ export const CronEditor: ExtendedEditor<Props> = (props: Props) => {
};

return (
<CronEditorStyled ref={node}>
<CronEditorStyled ref={node} className={nodeValue}>
<Input
value={value}
fieldErrors={fieldErrors}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { cx } from "@emotion/css";
import { UnknownFunction } from "../../../../../../types/common";
import { Duration } from "./DurationEditor";
import { Period } from "./PeriodEditor";
import { nodeInputWithError } from "../../../NodeDetailsContent/NodeTableStyled";
import { nodeInput, nodeInputWithError } from "../../../NodeDetailsContent/NodeTableStyled";

export type TimeRangeComponentType = {
label: string;
Expand Down Expand Up @@ -67,6 +67,7 @@ export default function TimeRangeComponent(props: Props) {
value={value[component.fieldName] || ""}
onChange={(event) => onChange(component.fieldName, parseInt(event.target.value))}
className={cx([
nodeInput,
"time-range-input",
showValidation && !isValid && nodeInputWithError,
isMarked && "marked",
Expand Down

0 comments on commit a8f5484

Please sign in to comment.