Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67e95e5

Browse files
fix: migrate FC from react 18 to react 19
1 parent 98a82cb commit 67e95e5

File tree

25 files changed

+71
-48
lines changed

25 files changed

+71
-48
lines changed

‎apps/docs/app/page.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { Button } from "ui"
2-
31
export default function Page() {
42
return (
53
<>
6-
<Button/>
4+
<h1>Hello World</h1>
75
</>
86
)
97
}

‎apps/web/package.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,9 @@
104104
"@types/react": "^19.0.1",
105105
"@types/react-dom": "^19.0.1"
106106
}
107+
},
108+
"engines": {
109+
"node": "22.12.0",
110+
"pnpm": "9.15.0"
107111
}
108112
}

‎apps/web/src/app/[lang]/(auth)/forgot-password/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22

3-
const ForgotPasswordPage: React.FC = () => {
3+
const ForgotPasswordPage = () => {
44
return (
55
<div>
66
<h1>Forgot Password</h1>

‎apps/web/src/app/[lang]/(auth)/reset-password/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react"
22

3-
const ResetPasswordPage: React.FC = () => {
3+
const ResetPasswordPage = () => {
44
return (
55
<div>
66
<h1>Forgot Password</h1>

‎apps/web/src/app/[lang]/(auth)/signup/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react"
22

33
import SignUp from "@/molecules/auth/sign-up"
44

5-
const RegisterPage: React.FC = () => {
5+
const RegisterPage = () => {
66
return (
77
<div className="flex justify-center">
88
<SignUp />

‎apps/web/src/app/[lang]/not-found.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react"
22
import Link from "next/link"
33

4-
const NotFound: React.FC = () => {
4+
const NotFound = () => {
55
return (
66
<div className="flex flex-col items-center justify-center gap-8 pt-20">
77
<h1 className="flex flex-col justify-center text-center text-4xl font-bold tracking-tight text-slate-800">

‎apps/web/src/molecules/follower/followers/follower-item.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type FollowerItemProps = {
1111
showFollowButton?: boolean
1212
}
1313

14-
const FollowerItem: React.FC<FollowerItemProps> = ({
14+
const FollowerItem = ({
1515
user,
1616
className = "",
1717
showFollowButton = true,

‎apps/web/src/molecules/follower/user-profile/follow-button.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Button, buttonVariants, cn } from "ui"
99

1010
import useFollowUser from "@/hooks/useFollowUser"
1111

12-
const FollowButton: React.FC<{authorId: string}>= ({ authorId }: { authorId: string }) => {
12+
const FollowButton= ({ authorId }: { authorId: string }) => {
1313
const t = useTranslations()
1414
const session = useSession()
1515

‎apps/web/src/molecules/posts/post-detail/table-of-contents/index.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import React, { useEffect } from "react"
44

55
import * as tocbot from "tocbot"
66

7-
const TableOfContents: React.FC = () => {
7+
const TableOfContents = () => {
88
// Generate table of contents logic here
99
useEffect(() => {
1010
tocbot.init({

‎apps/web/src/molecules/posts/post-item/bookmark-button/index.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ type BookmarkButtonContainerProps = {
1111
showCount?: boolean
1212
}
1313

14-
const BookmarkButtonContainer: React.FC<BookmarkButtonContainerProps> = async ({
14+
const BookmarkButtonContainer = async ({
1515
post,
1616
showCount,
17-
}) => {
17+
}: BookmarkButtonContainerProps) => {
1818
const { total, haveAction } = await getTotalActions({
1919
postId: post.id,
2020
actionType: PostOnUserType.BOOKMARK,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /