Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
eatski committed Aug 11, 2024
1 parent 3a57be5 commit 3cf8d1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/app/stories/new/_components/NewStorySwitchMode.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"use client";
import { type Device } from "@/common/util/device";
import { NewStory } from "@/components/newStory";
import { NewStoryYaml } from "@/components/newStoryYaml";
Expand Down
4 changes: 2 additions & 2 deletions src/app/stories/new/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { getDevice } from "@/common/util/device";
import { NewStory } from "@/components/newStory";
import { getUserSession } from "@/server/serverComponent/getUserSession";
import { createStory } from "@/server/services/story/createStory";
import { Metadata } from "next";
import { headers } from "next/headers";
import { RedirectType, notFound, redirect } from "next/navigation";
import { NewStorySwitchMode } from "./_components/NewStorySwitchMode";

export const metadata: Metadata = {
title: "新しいストーリー",
Expand All @@ -20,7 +20,7 @@ export default async function NewStoryPage() {
}
const device = getDevice(headers().get("user-agent") || undefined);
return (
<NewStory
<NewStorySwitchMode
device={device}
createStory={async (data) => {
"use server";
Expand Down

0 comments on commit 3cf8d1e

Please sign in to comment.