Skip to content

Commit ffe5135

Browse files
committed
fix: tsc error, lint error
1 parent d140ea9 commit ffe5135

4 files changed

Lines changed: 14 additions & 25 deletions

File tree

โ€Žsrc/common/components/SafeArea/style.css.tsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { css } from '@styled-system/css';
22

33
export const Container = css({
44
position: 'absolute',
5-
bottom: 0
5+
bottom: 0,
66
});

โ€Žsrc/pages/PostPages/WriteLayout/index.tsxโ€Ž

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
11
import Header from './header';
22
import Navigator from './navigator';
3-
import Step1 from '@/pages/PostPages/StepPages/step1';
4-
import Step2 from '@/pages/PostPages/StepPages/step2';
5-
import Step3 from '@/pages/PostPages/StepPages/step3';
6-
import Step4 from '@/pages/PostPages/StepPages/step4';
7-
import Step5 from '@/pages/PostPages/StepPages/step5';
8-
import Step6 from '@/pages/PostPages/StepPages/step6';
3+
import Step1 from '@/pages/PostPages/stepPages/step1';
4+
import Step2 from '@/pages/PostPages/stepPages/step2';
5+
import Step3 from '@/pages/PostPages/stepPages/step3';
6+
import Step4 from '@/pages/PostPages/stepPages/step4';
7+
import Step5 from '@/pages/PostPages/stepPages/step5';
8+
import Step6 from '@/pages/PostPages/stepPages/step6';
99
// import StepIndicator from './' // [TODO] stepindicator ๋งŒ๋“ค์–ด์„œ ์ถ”๊ฐ€ํ•˜๊ธฐ
1010
import { useState } from 'react';
1111

1212
import * as s from './style.css';
1313

1414
const MAX_STEP = 6;
1515

16-
const steps = [
17-
<Step1 />,
18-
<Step2 />,
19-
<Step3 />,
20-
<Step4 />,
21-
<Step5 />,
22-
<Step6 />,
23-
];
16+
const steps = [<Step1 />, <Step2 />, <Step3 />, <Step4 />, <Step5 />, <Step6 />];
2417

2518
const WriteLayout = () => {
26-
2719
const [step, setStep] = useState(1);
2820

2921
const isFirst = step === 1;
3022
const isLast = step === MAX_STEP;
3123

3224
const goPrev = () => {
33-
setStep((prev) => Math.max(1, prev - 1)); // ์ด์ „ ์ƒํƒœ ๊ณ ๋ ค (prev), ์ตœ์†Œ 1
34-
}
25+
setStep(prev => Math.max(1, prev - 1)); // ์ด์ „ ์ƒํƒœ ๊ณ ๋ ค (prev), ์ตœ์†Œ 1
26+
};
3527

3628
const goNext = () => {
3729
if (step < MAX_STEP) setStep(step + 1);

โ€Žsrc/pages/PostPages/WriteLayout/navigator.tsxโ€Ž

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,14 @@ interface NavigatorProps {
99
}
1010

1111
const Navigator = ({ goNext, goPrev, isFirst, isLast }: NavigatorProps) => {
12-
1312
const label = isLast ? '์™„๋ฃŒ' : '๋‹ค์Œ';
1413

1514
return (
1615
<footer>
1716
<div className={s.stepBtn}>
1817
{!isFirst && (
1918
<div className={s.halfFlex}>
20-
<Btn onClick={goPrev}>
21-
์ด์ „
22-
</Btn>
19+
<Btn onClick={goPrev}>์ด์ „</Btn>
2320
</div>
2421
)}
2522
<Btn onClick={goNext} color="main" style={isFirst ? { width: '100%' } : { flex: '1 1 0' }}>

โ€Žsrc/pages/PostPages/WriteLayout/style.css.tsโ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export const headerText = css({
4343
fontWeight: '600',
4444
});
4545

46-
export const halfFlex = css ({
47-
flex: '1 1 0'
48-
})
46+
export const halfFlex = css({
47+
flex: '1 1 0',
48+
});

0 commit comments

Comments
ย (0)