Skip to content

Commit

Permalink
Merge pull request #59 from Genesis-Solutions/2.1-statusfix
Browse files Browse the repository at this point in the history
2.1 statusfix
  • Loading branch information
MandukoGR committed May 26, 2023
2 parents 26d46cd + cbf2752 commit bd60319
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/EditModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const EditModal = ({ idForm, folio, estatus, userId }) => {
id={"estatus"}
defaultValue={estatus}
options={[
{ value: "En proceso", _id: "1" },
{ value: "En Comité", _id: "1" },
{ value: "Aprobado", _id: "2" },
{ value: "Cancelado", _id: "3" },
]}
Expand Down
10 changes: 6 additions & 4 deletions GomezMorinFrontEnd/src/components/InputForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const InputForm = ({
minLength,
maxLength,
min,
max
max,
}) => {
const { register } = useFormContext();
const [errorMessage, setErrorMessage] = useState("");
Expand Down Expand Up @@ -61,11 +61,13 @@ const InputForm = ({
accept={accept}
minLength={minLength}
maxLength={maxLength}
min = {min}
max = {max}
min={min}
max={max}
onChange={handleFileChange}
/>
{errorMessage && <p className="font-semibold text-red-400 text-sm">{errorMessage}</p>}
{errorMessage && (
<p className="font-semibold text-red-400 text-sm">{errorMessage}</p>
)}
</div>
);
};
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) => {
event.target.value = event.target.value.replace(/\D/, "");
}}
/>
</div>
<div className="md:col-span-1 col-span-2">
Expand Down
4 changes: 2 additions & 2 deletions GomezMorinFrontEnd/src/pages/RequestFormMoral/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const RequestAsMoral = () => {
await createRequestMoral({ ...data, userId: userId, date: todayString });
navigate("/request");
} catch (err) {
alert(err.message);
alert("Por favor sube un documento.");
}
};

Expand Down Expand Up @@ -105,7 +105,7 @@ const RequestAsMoral = () => {
accept=".pdf"
/>
<div className="pt-3">
<InputFileLabel />
<InputFileLabel />
</div>
</div>

Expand Down

0 comments on commit bd60319

Please sign in to comment.