refactor: 설문 참여 및 결과 파일명 변경
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { UserSurveyArticle } from "@/pages/survey";
|
||||
import { ViewSurveyArticle } from "@/pages/survey";
|
||||
|
||||
export default async function UserSurveyArticlePage({
|
||||
export default async function ViewSurveyArticlePage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ srvySn: string }>;
|
||||
}) {
|
||||
const { srvySn } = await params;
|
||||
return <UserSurveyArticle srvySn={srvySn} />;
|
||||
return <ViewSurveyArticle srvySn={srvySn} />;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { UserSurveyResult } from "@/pages/survey";
|
||||
import { ViewSurveyResult } from "@/pages/survey";
|
||||
|
||||
export default async function UserSurveyResultPage({
|
||||
export default async function ViewSurveyResultPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ srvySn: string }>;
|
||||
}) {
|
||||
const { srvySn } = await params;
|
||||
return <UserSurveyResult srvySn={srvySn} />;
|
||||
return <ViewSurveyResult srvySn={srvySn} />;
|
||||
}
|
||||
|
||||
@@ -2,5 +2,5 @@ export { SurveyPage } from "./ui/survey-page";
|
||||
export { CreatePage } from "./ui/create-page";
|
||||
export { DetailPage } from "./ui/detail-page";
|
||||
export { ModifyPage } from "./ui/modify-page";
|
||||
export { UserSurveyArticle } from "./ui/user-survey-article";
|
||||
export { UserSurveyResult } from "./ui/user-survey-result";
|
||||
export { ViewSurveyArticle } from "./ui/view-survey-article";
|
||||
export { ViewSurveyResult } from "./ui/view-survey-result";
|
||||
|
||||
+2
-2
@@ -31,7 +31,7 @@ import {
|
||||
type UserSurveyFormData,
|
||||
} from "../model/survey-interface";
|
||||
|
||||
function UserSurveyArticle({ srvySn }: { srvySn: string }) {
|
||||
function ViewSurveyArticle({ srvySn }: { srvySn: string }) {
|
||||
const alert = useAlertStore((state) => state.setMessage);
|
||||
|
||||
const [brdt, setBrdt] = useState("");
|
||||
@@ -459,4 +459,4 @@ function TextareaArticle({
|
||||
);
|
||||
}
|
||||
|
||||
export { UserSurveyArticle };
|
||||
export { ViewSurveyArticle };
|
||||
+2
-2
@@ -44,7 +44,7 @@ ChartJS.register(
|
||||
Legend,
|
||||
);
|
||||
|
||||
function UserSurveyResult({ srvySn }: { srvySn: string }) {
|
||||
function ViewSurveyResult({ srvySn }: { srvySn: string }) {
|
||||
const [params, setParams] = useState<UserSurveyResultParams>({
|
||||
siteId: "ALL",
|
||||
});
|
||||
@@ -333,4 +333,4 @@ function InputResult({
|
||||
);
|
||||
}
|
||||
|
||||
export { UserSurveyResult };
|
||||
export { ViewSurveyResult };
|
||||
Reference in New Issue
Block a user