Commit b7a99d1 1 parent c26dd48 commit b7a99d1 Copy full SHA for b7a99d1
File tree 1 file changed +5
-6
lines changed
app/(website)/(pages)/traffic
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import Link from "next/link";
6
6
7
7
type Transportation = "car" | "public" | "shuttle" ;
8
8
export default function Page ( ) {
9
- const [ transportation , setTransportation ] = useState < Transportation > ( "car " ) ;
9
+ const [ transportation , setTransportation ] = useState < Transportation > ( "shuttle " ) ;
10
10
11
11
const options : Array < { value : Transportation ; label : string } > = [
12
12
{ value : "shuttle" , label : "大眾接駁車" } ,
@@ -54,11 +54,10 @@ export default function Page() {
54
54
} }
55
55
key = { option . value }
56
56
onClick = { ( ) => setTransportation ( option . value ) }
57
- className = { `flex h-[60px] flex-grow items-center justify-center rounded-xl text-black ${
58
- transportation === option . value
59
- ? "bg-[#B9D3E6]"
60
- : "bg-[#DEE6EB]"
61
- } `}
57
+ className = { `flex h-[60px] flex-grow items-center justify-center rounded-xl text-black ${ transportation === option . value
58
+ ? "bg-[#B9D3E6]"
59
+ : "bg-[#DEE6EB]"
60
+ } `}
62
61
>
63
62
{ option . label }
64
63
</ motion . button >
You can’t perform that action at this time.
0 commit comments