Skip to content

Commit

Permalink
chore: update files
Browse files Browse the repository at this point in the history
  • Loading branch information
haru52 committed Jul 1, 2024
1 parent 6c43e58 commit 9c1ac17
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { getServerAuthSession } from "~/server/auth";
import { api } from "~/trpc/server";
import { Hero } from "./_components/hero";
import { redirect } from "next/navigation";
import { Home } from "./_components/home";
import { Home as HomeComponent } from "./_components/home";
import Link from "next/link";

export default async function Page() {
export default async function Home() {
const session = await getServerAuthSession();
const user = session === null ? null : await api.user.getMe();
if (user !== null && user.screenName === null) redirect("/signup"); // 初回ログイン(サインアップ)
Expand All @@ -17,7 +17,7 @@ export default async function Page() {
) : (
<div className="container prose mx-auto mb-10 mt-5 px-4">
{user !== null && avatars !== null && avatars.length >= 1 ? (
<Home user={user} avatars={avatars} />
<HomeComponent user={user} avatars={avatars} />
) : (
<p>
まだ
Expand Down
2 changes: 1 addition & 1 deletion src/app/privacy-policy/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const metadata: Metadata = {
title: "プライバシーポリシー",
};

export default function Page() {
export default function PrivacyPolicy() {
return (
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">プライバシーポリシー</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/app/terms-of-service/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const metadata: Metadata = {
title: "利用規約",
};

export default function Page() {
export default function TermsOfService() {
return (
<div className="container prose mx-auto mb-10 mt-5 px-4">
<h1 className="text-center">利用規約</h1>
Expand Down

0 comments on commit 9c1ac17

Please sign in to comment.