Skip to content

Commit 236f5af

Browse files
committed
Fix: 스타일 분리
1 parent 25a8734 commit 236f5af

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/pages/Profile/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import {
4646
AddButton,
4747
NoPostWrapper,
4848
Button,
49+
ButtonSkeleton,
4950
} from './styles';
5051

5152
const Profile: React.FC = () => {
@@ -136,9 +137,9 @@ const Profile: React.FC = () => {
136137
</Header>
137138

138139
{/* 버튼 스켈레톤 */}
139-
<div style={{ width: '90%', margin: '16px auto' }}>
140-
<Skeleton width="100%" height={40} borderRadius={10} />
141-
</div>
140+
<ButtonSkeleton>
141+
<Skeleton width="100%" height={40} />
142+
</ButtonSkeleton>
142143

143144
{/* 통계 스켈레톤 */}
144145
<StatsContainer>

src/pages/Profile/styles.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,8 @@ export const Button = styled.button`
102102
padding: 10px;
103103
background: ${({ theme }) => theme.colors.brand.gradient};
104104
`;
105+
106+
export const ButtonSkeleton = styled.button`
107+
width: 90%;
108+
margin: 16px auto;
109+
`;

0 commit comments

Comments
 (0)