Exportar excel con imagen y ahora guarda las imagenes como .png
This commit is contained in:
@@ -21,14 +21,14 @@ export default function EditTrainingPage() {
|
||||
}
|
||||
|
||||
return (
|
||||
<PageContainer scrollable>
|
||||
<div className="flex-1 space-y-4">
|
||||
<CreateTrainingForm
|
||||
defaultValues={training}
|
||||
onSuccess={() => router.push('/dashboard/formulario')}
|
||||
onCancel={() => router.back()}
|
||||
/>
|
||||
</div>
|
||||
</PageContainer>
|
||||
// <PageContainer scrollable>
|
||||
<div className="p-6 space-y-6">
|
||||
<CreateTrainingForm
|
||||
defaultValues={training}
|
||||
onSuccess={() => router.push('/dashboard/formulario')}
|
||||
onCancel={() => router.back()}
|
||||
/>
|
||||
</div>
|
||||
// </PageContainer>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -23,17 +23,18 @@ export default async function Page({ searchParams }: PageProps) {
|
||||
} = searchParamsCache.parse(await searchParams);
|
||||
|
||||
return (
|
||||
<PageContainer>
|
||||
<div className="flex flex-1 flex-col space-y-6">
|
||||
<TrainingHeader />
|
||||
<TrainingTableAction />
|
||||
<TrainingList
|
||||
initialPage={page}
|
||||
initialSearch={searchQuery}
|
||||
initialLimit={limit || 10}
|
||||
apiUrl={env.API_URL}
|
||||
/>
|
||||
</div>
|
||||
</PageContainer>
|
||||
// <PageContainer>
|
||||
// <div className="flex flex-1 flex-col space-y-6">
|
||||
< div className="p-6 space-y-6" >
|
||||
<TrainingHeader />
|
||||
<TrainingTableAction />
|
||||
<TrainingList
|
||||
initialPage={page}
|
||||
initialSearch={searchQuery}
|
||||
initialLimit={limit || 10}
|
||||
apiUrl={env.API_URL}
|
||||
/>
|
||||
</div >
|
||||
// </PageContainer>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ import { auth } from '@/lib/auth';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
||||
export default async function Dashboard() {
|
||||
console.log('La sesion es llamada');
|
||||
const session = await auth();
|
||||
|
||||
if (!session?.user) {
|
||||
|
||||
Reference in New Issue
Block a user