File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change
1
+ import { useNavigate } from 'react-router-dom' ;
1
2
import styled from 'styled-components' ;
2
3
3
4
import { CheckboxImg } from '../../assets/image' ;
4
5
import Calendar from '../main/Calendar' ;
5
6
6
7
const SearchBar = ( ) => {
8
+ const navigate = useNavigate ( ) ;
9
+
7
10
return (
8
11
< SearchBarContainer >
9
12
< FlightWayContainer >
@@ -35,7 +38,9 @@ const SearchBar = () => {
35
38
< InfoTitle > 인원, 좌석등급</ InfoTitle >
36
39
< InfoSeat > 1명, 일반석</ InfoSeat >
37
40
</ InfoDiv >
38
- < SearchBtn > 검색하기</ SearchBtn >
41
+ < SearchBtn type = "button" onClick = { ( ) => navigate ( `/ticketList` ) } >
42
+ 검색하기
43
+ </ SearchBtn >
39
44
</ FlightInfoContainer >
40
45
</ SearchBarContainer >
41
46
) ;
@@ -141,19 +146,13 @@ const InfoDestination = styled.span`
141
146
${ ( { theme } ) => theme . fonts . heading09 } ;
142
147
` ;
143
148
144
- const InfoDate = styled . span `
145
- margin-right: 1.3rem;
146
- color: ${ ( { theme } ) => theme . colors . skscanGrey900 } ;
147
- ${ ( { theme } ) => theme . fonts . heading09 } ;
148
- ` ;
149
-
150
149
const InfoSeat = styled . span `
151
150
margin-right: 8.5rem;
152
151
color: ${ ( { theme } ) => theme . colors . skscanGrey900 } ;
153
152
${ ( { theme } ) => theme . fonts . heading09 } ;
154
153
` ;
155
154
156
- const SearchBtn = styled . div `
155
+ const SearchBtn = styled . button `
157
156
display: flex;
158
157
align-items: center;
159
158
justify-content: center;
You can’t perform that action at this time.
0 commit comments