Skip to content

Commit 9154ab7

Browse files
committed
highlight selected portfolio
1 parent 5619dca commit 9154ab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/src/components/About/PortfolioDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const PortfolioDisplay = () => {
2121
<div className="flex justify-between max-w-full h-10 my-6 snap-x snap-mandatory overflow-scroll hide-scrollbar">
2222
{names.map((name) => (
2323
<button
24-
className="grow text-center border border-white bg-blue-700 p-2"
24+
className={`grow text-center border border-white ${name === selectedPortfolio ? "bg-blue-400" : "bg-blue-700"} p-2`}
2525
key={`btn-${name}`}
2626
onClick={() => setSelectedPortfolio(name)}
2727
>

0 commit comments

Comments
 (0)