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

2.1 statusfix #59

Merged
merged 9 commits into from
May 26, 2023
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/EditModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const EditModal = ({ idForm, folio, estatus, userId }) => {
id={"estatus"}
defaultValue={estatus}
options={[
{ value: "En proceso", _id: "1" },
{ value: "En Comité", _id: "1" },
MandukoGR marked this conversation as resolved.
Show resolved Hide resolved
{ value: "Aprobado", _id: "2" },
{ value: "Cancelado", _id: "3" },
]}
Expand Down
1 change: 1 addition & 0 deletions GomezMorinFrontEnd/src/components/InputForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const InputForm = ({
pattern,
required = false,
accept,
value,
minLength,
maxLength,
min,
Expand Down
3 changes: 1 addition & 2 deletions GomezMorinFrontEnd/src/pages/RequestForm/InitialForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ const InitialForm = () => {
const [characterCount, setCharacterCount] = useState(0);
const currentDate = new Date().toISOString().split("T")[0];
const [startDay, setStartDay] = useState("");

const handleStartDayChange = (event) => {
setStartDay(event.target.value);
};
Expand Down Expand Up @@ -128,7 +127,7 @@ const InitialForm = () => {
placeholder="Ejemplo: 04/25/2023"
defaultValue=""
required={true}
min={startDay || currentDate}
min={currentDate}
/>
</div>

Expand Down
3 changes: 3 additions & 0 deletions GomezMorinFrontEnd/src/pages/RequestForm/SpecificForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ const SpecificForm = () => {
min="1000000000"
max="9999999999"
required={true}
onChange={(event) => {
MandukoGR marked this conversation as resolved.
Show resolved Hide resolved
event.target.value = event.target.value.replace(/\D/, '');
}}
/>
</div>
<div className="md:col-span-1 col-span-2">
Expand Down