Skip to content

Commit

Permalink
Negative values for time field fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aady7 committed Oct 13, 2023
1 parent 1655c7c commit d0cbea6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Tutorials/subComps/AddNewStep.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
addNewTutorialStep,
clearCreateTutorials
} from "../../../store/actions";
import { min } from "lodash";

const AddNewStepModal = ({
viewModal,
Expand Down Expand Up @@ -126,13 +127,17 @@ const AddNewStepModal = ({
autoComplete="title"
style={{ marginBottom: "2rem" }}
data-testid={"newStepTitleInput"}
required="true"

/>
<TextField
type="number"
onChange={e => setTime(e.target.value)}
placeholder="Time (minutes)"
style={{ width: "100%" }}
data-testid={"newStepTimeInput"}
inputProps={{ min: 0 }}
required="true"
/>
<Button
style={{ marginTop: "2rem", marginRight: "7px" }}
Expand Down

0 comments on commit d0cbea6

Please sign in to comment.