Skip to content

Commit b7a99d1

Browse files
yc97463denny0223
authored andcommitted
fix: update default transportation option to "shuttle" (#91)
1 parent c26dd48 commit b7a99d1

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/(website)/(pages)/traffic/page.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Link from "next/link";
66

77
type Transportation = "car" | "public" | "shuttle";
88
export default function Page() {
9-
const [transportation, setTransportation] = useState<Transportation>("car");
9+
const [transportation, setTransportation] = useState<Transportation>("shuttle");
1010

1111
const options: Array<{ value: Transportation; label: string }> = [
1212
{ value: "shuttle", label: "大眾接駁車" },
@@ -54,11 +54,10 @@ export default function Page() {
5454
}}
5555
key={option.value}
5656
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+
}`}
6261
>
6362
{option.label}
6463
</motion.button>

0 commit comments

Comments
 (0)