modified to construct the component impressions
This commit is contained in:
@@ -33,7 +33,6 @@ export default async function Page(props: {
|
|||||||
|
|
||||||
if (numAcount) {
|
if (numAcount) {
|
||||||
const result = await GetStudentWhitoutSancion(parseInt(numAcount));
|
const result = await GetStudentWhitoutSancion(parseInt(numAcount));
|
||||||
|
|
||||||
if (result.error) {
|
if (result.error) {
|
||||||
errorMessage = `${result.error}`;
|
errorMessage = `${result.error}`;
|
||||||
} else {
|
} else {
|
||||||
@@ -84,6 +83,7 @@ export default async function Page(props: {
|
|||||||
label: "Impresiones color",
|
label: "Impresiones color",
|
||||||
content: (
|
content: (
|
||||||
<Impressions
|
<Impressions
|
||||||
|
key={2}
|
||||||
costs={getCostsByService(2)}
|
costs={getCostsByService(2)}
|
||||||
numAcount={student.id_cuenta}
|
numAcount={student.id_cuenta}
|
||||||
id_servicio={2}
|
id_servicio={2}
|
||||||
@@ -95,6 +95,7 @@ export default async function Page(props: {
|
|||||||
label: "Plotter",
|
label: "Plotter",
|
||||||
content: (
|
content: (
|
||||||
<Impressions
|
<Impressions
|
||||||
|
key={3}
|
||||||
costs={getCostsByService(3)}
|
costs={getCostsByService(3)}
|
||||||
numAcount={student.id_cuenta}
|
numAcount={student.id_cuenta}
|
||||||
id_servicio={3}
|
id_servicio={3}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { ReactNode } from "react";
|
import { ReactNode } from "react";
|
||||||
import Logout from "../Components/auth/Logout/Logout";
|
import Logout from "../Components/auth/Logout/Logout";
|
||||||
import BackgroundRotator from "../Components/layout/BackgroundRotator.tsx/BackgroundRotator";
|
import BackgroundRotator from "../Components/layout/BackgroundRotator/BackgroundRotator";
|
||||||
|
|
||||||
export default async function PrivateLayout({
|
export default async function PrivateLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ interface ImpressionsProps {
|
|||||||
|
|
||||||
function Impressions({ costs, numAcount, id_servicio }: ImpressionsProps) {
|
function Impressions({ costs, numAcount, id_servicio }: ImpressionsProps) {
|
||||||
const [pages, setPages] = useState("");
|
const [pages, setPages] = useState("");
|
||||||
const [cost, setCost] = useState("");
|
const [cost, setCost] = useState(String(costs[0].value));
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
import "./creadores.css";
|
import BackgroundRotator from "../Components/layout/BackgroundRotator/BackgroundRotator";
|
||||||
import CreatorCard from "./CreatorCard";
|
import CreatorCard from "./CreatorCard";
|
||||||
|
import "./creadores.css";
|
||||||
|
|
||||||
export default function Page() {
|
export default function Page() {
|
||||||
return (
|
return (
|
||||||
<div className="mainContainer">
|
<div className="mainContainer">
|
||||||
<div className="container" style={{ display: "flex",flexDirection:"row", justifyContent: "center", gap: "3rem", flexWrap:"wrap" }}>
|
<div className="container" style={{ display: "flex", flexDirection: "row", justifyContent: "center", gap: "3rem", flexWrap: "wrap" }}>
|
||||||
<div className="img"></div>
|
<BackgroundRotator />
|
||||||
|
|
||||||
<CreatorCard title="IO" img="/IO.png" width={150} height={200} />
|
<CreatorCard title="IO" img="/IO.png" width={150} height={200} />
|
||||||
<CreatorCard title="CarloSpak" img="/SPAK.png" width={160} height={100} />
|
<CreatorCard title="CarloSpak" img="/SPAK.png" width={160} height={100} />
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
import Login from "./Components/auth/Login/Login";
|
import Login from "./Components/auth/Login/Login";
|
||||||
import BackgroundRotator from "./Components/layout/BackgroundRotator.tsx/BackgroundRotator";
|
import BackgroundRotator from "./Components/layout/BackgroundRotator/BackgroundRotator";
|
||||||
import { LoginRedirect } from "./Routes/LoginRedirect";
|
import { LoginRedirect } from "./Routes/LoginRedirect";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@
|
|||||||
"**/*.tsx",
|
"**/*.tsx",
|
||||||
".next/types/**/*.ts",
|
".next/types/**/*.ts",
|
||||||
".next/dev/types/**/*.ts"
|
".next/dev/types/**/*.ts"
|
||||||
],
|
, "app/Components/layout/BackgroundRotator" ],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"node_modules"
|
"node_modules"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user