Skip to content

Commit bacb25b

Browse files
committed
style: format code for better readability in traffic page
1 parent 082dc7f commit bacb25b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

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

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

1112
const options: Array<{ value: Transportation; label: string }> = [
1213
{ value: "shuttle", label: "大眾接駁車" },
@@ -54,10 +55,11 @@ export default function Page() {
5455
}}
5556
key={option.value}
5657
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+
}`}
6163
>
6264
{option.label}
6365
</motion.button>

0 commit comments

Comments
 (0)