@@ -5,7 +5,6 @@ import { useTabContext } from '@/components/_common/Tabs/TabContext';
5
5
import useTabs from '@/hooks/useTabs' ;
6
6
import useChecklistStore from '@/store/useChecklistStore' ;
7
7
import { flexRow } from '@/styles/common' ;
8
- import theme from '@/styles/theme' ;
9
8
10
9
interface Props {
11
10
marginTop ?: string ;
@@ -23,11 +22,11 @@ const MoveNextButton = ({ marginTop = '0', marginBottom = '0' }: Props) => {
23
22
24
23
return (
25
24
< S . ContentBox marginTop = { marginTop } marginBottom = { marginBottom } >
26
- < S . Button onClick = { handleClickPrev } >
27
- < S . Text color = { theme . palette . yellow600 } > { ' < 이전으로 이동' } </ S . Text >
25
+ < S . Button onClick = { handleClickPrev } disabled = { currentTabId === - 1 } >
26
+ { ` < 이전으로 이동` }
28
27
</ S . Button >
29
- < S . Button onClick = { handleClickNext } >
30
- < S . Text color = { theme . palette . yellow600 } > { '다음으로 이동 >' } </ S . Text >
28
+ < S . Button onClick = { handleClickNext } disabled = { currentTabId === categories . length } >
29
+ { '다음으로 이동 >' }
31
30
</ S . Button >
32
31
</ S . ContentBox >
33
32
) ;
@@ -36,21 +35,24 @@ const MoveNextButton = ({ marginTop = '0', marginBottom = '0' }: Props) => {
36
35
export default React . memo ( MoveNextButton ) ;
37
36
38
37
const S = {
39
- Text : styled . span < { color : string } > `
40
- color: ${ ( { color } ) => color } ;
41
- font-weight: ${ ( { theme } ) => theme . text . weight . bold } ;
42
- ` ,
43
38
Button : styled . button `
44
39
margin: 10px 0;
45
40
padding: 0 15px;
46
41
border: 0.25rem solid ${ ( { theme } ) => theme . palette . yellow400 } ;
47
42
48
43
background-color: ${ ( { theme } ) => theme . palette . white } ;
49
44
50
- font-weight: ${ ( { theme } ) => theme . text . weight . medium } ;
45
+ color: ${ ( { theme } ) => theme . palette . yellow600 } ;
46
+ font-weight: ${ ( { theme } ) => theme . text . weight . bold } ;
51
47
font-size: ${ ( { theme } ) => theme . text . size . small } ;
52
48
line-height: 2.5;
53
49
border-radius: 3rem;
50
+
51
+ &:disabled {
52
+ border: 0.25rem solid ${ ( { theme } ) => theme . palette . grey300 } ;
53
+
54
+ color: ${ ( { theme } ) => theme . palette . grey500 } ;
55
+ }
54
56
` ,
55
57
ContentBox : styled . div < { marginTop : string ; marginBottom : string } > `
56
58
${ flexRow }
0 commit comments