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