add highlight logic to search card
This commit is contained in:
@@ -119,7 +119,7 @@ export default function UserRoutes() {
|
||||
|
||||
const getBorderColor = (route: Route) => {
|
||||
if (route.is_highlighted) {
|
||||
return 'border-yellow-500'
|
||||
return 'border-yellow-500 border-2'
|
||||
}
|
||||
return 'border'
|
||||
}
|
||||
@@ -142,7 +142,7 @@ export default function UserRoutes() {
|
||||
{routes.map(route => (
|
||||
<div
|
||||
key={route.id}
|
||||
className={`space-y-4 rounded-2xl border bg-white p-6 transition-shadow hover:shadow-md ${getBorderColor(route)}`}
|
||||
className={`space-y-4 rounded-2xl bg-white p-6 transition-shadow hover:shadow-md ${getBorderColor(route)}`}
|
||||
>
|
||||
<div className="flex items-center justify-between">
|
||||
<div className="text-sm text-gray-500">ID маршрута: #{route.id}</div>
|
||||
|
||||
Reference in New Issue
Block a user