Skip to content

Commit 59e4e5d

Browse files
committed
Fix: 유저 프로필 컴포넌트 import문 수정
1 parent 8afc65c commit 59e4e5d

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/UserProfile/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
import React from 'react';
1+
import { memo } from 'react';
22

33
import theme from '@styles/theme';
4+
45
import { StyledText } from '@components/Text/StyledText';
56

67
import type { UserProfileProps } from './dto';
8+
79
import { UserProfileLayout, UserImg, UserDetailsContainer, StyledBio } from './style';
810

9-
const UserProfile: React.FC<UserProfileProps> = React.memo(({ userImg, bio = '', nickname }) => {
11+
const UserProfile: React.FC<UserProfileProps> = memo(({ userImg, bio = '', nickname }) => {
1012
const truncatedBio = bio ? (bio.length > 50 ? bio.substring(0, 50) + '...' : bio) : '';
1113
return (
1214
<UserProfileLayout>

src/components/UserProfile/style.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { styled } from 'styled-components';
2+
23
import { StyledText } from '@components/Text/StyledText';
34

45
export const UserProfileLayout = styled.section`

0 commit comments

Comments
 (0)