Skip to content

Commit

Permalink
feat: #301 - 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dudwns committed May 13, 2024
1 parent 54909b4 commit 75f5a11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/app/(routes)/space/[spaceId]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ type SpaceLayoutProps = {
}

export async function generateMetadata({
params,
params: { spaceId },
}: SpaceLayoutProps): Promise<Metadata> {
const spaceId = params.spaceId
const space = await fetchGetSpace({ spaceId })

return {
Expand Down
13 changes: 6 additions & 7 deletions src/app/(routes)/user/[userId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import {
ProfileEditButton,
} from '@/components'
import { CATEGORIES_RENDER, PROFILE_MSG } from '@/constants'
import { getProfile } from './layout'
import { fetchGetUserProfile } from '@/services/user/profile/profile'
import { UserLayoutProps } from './layout'

interface UserPageProps {
params: { userId: number }
}

export default async function UserPage({ params: { userId } }: UserPageProps) {
const user = await getProfile(userId)
export default async function UserPage({
params: { userId },
}: UserLayoutProps) {
const user = await fetchGetUserProfile({ memberId: userId })

return (
<>
Expand Down

0 comments on commit 75f5a11

Please sign in to comment.