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

0.0 mod mis solicitudes #63

Merged
merged 3 commits into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions GomezMorinFrontEnd/src/pages/PageRequest/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import DataGridComponent from "../../components/DataGridComponent";
import { getForm } from "../../queries/queryRequestForm";
import { useSelector } from "react-redux";


/**
* The PageRequest component displays the request page, including a header, a button to create a new request,
* and a data grid component to display existing requests.
Expand Down Expand Up @@ -74,9 +75,9 @@ const PageRequest = () => {
* @returns {JSX.Element} - The PageRequest component.
*/
return (
<div className="grid grid-cols-1 md:grid-cols-6">
<div className="md:col-span-1 md:bg-sideLeftBG md:bg-cover md:bg-center md:bg-no-repeat"></div>
<div className="col-span-1 md:col-span-4 flex justify-between">
<div className={`grid grid-cols-1 lg:grid-cols-6 ${rows.length === 0 ? 'lg:h-full' : ''}`}>
<div className="lg:col-span-1 lg:bg-sideLeftBG lg:bg-cover lg:bg-center lg:bg-no-repeat"></div>
<div className="col-span-1 lg:col-span-4 flex justify-between">
<div className="flex flex-col items-center py-10 w-full md:p-12">
<Header tittle={"Solicitudes"} />
<div className="flex py-12 w-52 h-36 md:w-96 md:h-36 md:p-12 md:px-6 ">
Expand Down Expand Up @@ -104,7 +105,7 @@ const PageRequest = () => {
columns={rol === "Moral" ? columnsMoral : columns}
></DataGridComponent>
) : (
<div className="flex justify-center items-center w-full h-full">
<div className="flex justify-center items-center w-full">
<p className="text-base md:text-2xl text-gray-400">
No hay solicitudes registradas
</p>
Expand All @@ -113,7 +114,7 @@ const PageRequest = () => {
</div>
</div>
</div>
<div className="md:col-span-1 md:bg-sideRightBG md:bg-cover md:bg-center md:bg-no-repeat"></div>
<div className="lg:col-span-1 lg:bg-sideRightBG lg:bg-cover lg:bg-center lg:bg-no-repeat"></div>
</div>
);
};
Expand Down
10 changes: 5 additions & 5 deletions GomezMorinFrontEnd/src/pages/RequestFormMoral/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ const RequestAsMoral = () => {
};

return (
<div className="grid grid-cols-1 md:grid-cols-6 w-screen h-screen">
<div className="md:h-full md:col-span-1 md:bg-sideLeftBG md:bg-cover md:bg-center md:bg-no-repeat"></div>
<div className="md:col-span-4 w-full h-full flex justify-between">
<div className="flex flex-col items-center w-full h-full px-6 md:px-10 lg:px-16 py-3">
<div className="grid grid-cols-1 lg:grid-cols-6 w-screen md:h-screen">
<div className="lg:h-full lg:col-span-1 lg:bg-sideLeftBG lg:bg-cover lg:bg-center lg:bg-no-repeat"></div>
<div className="lg:col-span-4 w-full h-full flex justify-between">
<div className="flex flex-col items-center w-full h-full px-6 lg:px-10 xl:px-16 py-3">
<div className="py-3 pb-6 w-full">
<Header tittle="Nueva solicitud" />
</div>
Expand Down Expand Up @@ -128,7 +128,7 @@ const RequestAsMoral = () => {
</FormProvider>
</div>
</div>
<div className="md:h-full md:col-span-1 md:bg-sideRightBG md:bg-cover md:bg-center md:bg-no-repeat"></div>
<div className="lg:h-full lg:col-span-1 lg:bg-sideRightBG lg:bg-cover lg:bg-center lg:bg-no-repeat"></div>
</div>
);
};
Expand Down