diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index bb6644c..08ef21a 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -679,16 +679,12 @@ function LessonPage(props: { ); } -function PostPage(props: { post: PostCard; onGoHome: () => void }) { - const { post, onGoHome } = props; +function PostPage(props: { post: PostCard }) { + const { post } = props; const postBody = stripLeadingTitleHeading(post.body, post.title); return (
- -

{post.title}

@@ -865,8 +861,8 @@ function HomeView(props: { ); } -function SignInPage(props: { auth: AuthState; onGoHome: () => void }) { - const { auth, onGoHome } = props; +function SignInPage(props: { auth: AuthState }) { + const { auth } = props; const query = new URLSearchParams(window.location.search); const error = query.get("error"); const returnTo = query.get("return_to") || "/"; @@ -877,10 +873,6 @@ function SignInPage(props: { auth: AuthState; onGoHome: () => void }) { return (
- -

Sign in

@@ -1091,14 +1083,11 @@ function PostRouteView( return (

Post not found.

-
); } - return ; + return ; } function LessonRouteView( @@ -1198,7 +1187,7 @@ function DiscussionRouteView(props: AppContentProps & { discussionId: number }) function AppContent(props: AppContentProps) { if (isSignInRoute(props.pathname)) { - return ; + return ; } if (isActivityRoute(props.pathname)) {