Skip to content

Commit

Permalink
rename: change to usePdfFile, uploadTakenLecture
Browse files Browse the repository at this point in the history
  • Loading branch information
yougyung committed Mar 14, 2024
1 parent c87c9fc commit b38ff02
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/(sub-page)/grade-upload/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ContentContainer from '../../ui/view/atom/content-container';
import Manual from './components/manual';
import UploadGradeCard from '../../ui/lecture/upload-taken-lecture/upload-grade-card';
import UploadGradeCard from '../../ui/lecture/upload-taken-lecture/upload-taken-lecture';

export default function GradeUploadPage() {
return (
Expand Down
2 changes: 1 addition & 1 deletion app/hooks/useFile.ts → app/hooks/usePdfFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { z } from 'zod';

export type FileType = File | null;

export default function useFile() {
export default function usePdfFile() {
const [file, setFile] = useState<FileType>(null);

const changeFile = (file: File) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { registUserGrade } from '@/app/business/lecture/taken-lecture.command';
import UploadPdf from '@/app/ui/view/molecule/upload-pdf/upload-pdf';
import Form from '../../view/molecule/form';

function UploadGradeCard() {
function UploadTakenLecture() {
return (
<Form action={registUserGrade} id="성적업로드">
<UploadPdf />
Expand All @@ -13,4 +13,4 @@ function UploadGradeCard() {
);
}

export default UploadGradeCard;
export default UploadTakenLecture;

0 comments on commit b38ff02

Please sign in to comment.