Skip to content

Commit 1512b19

Browse files
이정원이정원
authored andcommitted
refactor: css 따로 빼기
1 parent c1e0d09 commit 1512b19

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/pages/PostPages/WriteLayout/navigator.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ const Navigator = ({ goNext, goPrev, isFirst, isLast }: NavigatorProps) => {
1616
<footer>
1717
<div className={s.stepBtn}>
1818
{!isFirst && (
19-
<Btn onClick={goPrev} style={{ flex: '1 1 0' }}>
20-
이전
21-
</Btn>
19+
<div className={s.halfFlex}>
20+
<Btn onClick={goPrev}>
21+
이전
22+
</Btn>
23+
</div>
2224
)}
2325
<Btn onClick={goNext} color="main" style={isFirst ? { width: '100%' } : { flex: '1 1 0' }}>
2426
{label}

src/pages/PostPages/WriteLayout/style.css.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ export const headerText = css({
4242
fontSize: '1.25rem',
4343
fontWeight: '600',
4444
});
45+
46+
export const halfFlex = css ({
47+
flex: '1 1 0'
48+
})

0 commit comments

Comments
 (0)