Skip to content
Open
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: 4 additions & 7 deletions components/features/student/student-files-uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Button } from '@/components/ui/button';
import { DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog';
import { Form } from '@/components/ui/form';
import { Input } from '@/components/ui/input';
import { ScrollArea } from '@/components/ui/scroll-area';
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs-api';
import { useStrictForm } from '@/hooks/form-hook';
import { useCreateStudentBulk } from '@/hooks/student-hook';
Expand Down Expand Up @@ -403,13 +404,9 @@ const InuFormatDialog = () => {
Import
</Button>

{/* <ScrollArea className="h-[200px] w-full rounded-md border p-4 font-mono">
{form.getValues().map((e, i) => (
<div key={i}>
{e.kmuttId}: {e.firstName}
</div>
))}
</ScrollArea> */}
<ScrollArea className="h-[200px] w-full rounded-md border p-4 font-mono">
<pre>{JSON.stringify(form.getValues(), null, 2)}</pre>
</ScrollArea>

<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)}></form>
Expand Down
1 change: 1 addition & 0 deletions hooks/importer-hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export const useImportCourse = () => {
onError: (error) => {
toast.error('Failed to create course', {
description: error.message,
duration: 20000,
});
},
});
Expand Down
Binary file modified public/template/student.xlsx
Binary file not shown.