Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thejessewinton committed Jan 26, 2024
1 parent 172c4da commit 306d1f5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion src/app/(default)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { api } from '~/trpc/server'
import { PostFeed } from '../_components/post-feed'
import { cache } from 'react'

export const POSTS_PER_PAGE = 20
const POSTS_PER_PAGE = 20

export default async function Index({
searchParams,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use client'

import { useRouter } from 'next/navigation'
import { type SubmitHandler, useForm } from 'react-hook-form'
import { toast } from 'react-hot-toast'
import { Button } from '~/app/_components/button'
Expand Down Expand Up @@ -34,7 +33,6 @@ const EditProfileDialog = ({
const { handleDialogClose } = useDialogStore()

const utils = api.useUtils()
const router = useRouter()

const { register, handleSubmit, reset } = useForm<EditFormData>({
defaultValues: {
Expand Down
4 changes: 0 additions & 4 deletions src/app/(default)/profile/[userId]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { Avatar } from '~/app/_components/avatar'

import DotPattern from '~/app/_svg/dot-pattern'

import { env } from '~/env'
import { getServerAuthSession } from '~/server/auth'
import { api } from '~/trpc/server'
import { EditProfileAction } from './_components/edit-profile'
import { UpdateAvatarAction } from './_components/update-avatar'
import { PostFeed } from '~/app/_components/post-feed'
import { cache } from 'react'

Expand Down

0 comments on commit 306d1f5

Please sign in to comment.