diff --git a/src/app/api/properties/route.ts b/src/app/api/properties/route.ts index 68c5fb7..c0fd513 100644 --- a/src/app/api/properties/route.ts +++ b/src/app/api/properties/route.ts @@ -22,4 +22,4 @@ export async function POST(req: NextRequest) { filters ); return NextResponse.json(properties); -} +} \ No newline at end of file diff --git a/src/app/globals.css b/src/app/globals.css index c00cf15..c42a622 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -222,3 +222,8 @@ display: none !important; } } + +@keyframes loading { + 0% { transform: translateX(-100%); } + 100% { transform: translateX(300%); } +} diff --git a/src/app/portfolio/[slug]/components/PropertyFilters.tsx b/src/app/portfolio/[slug]/components/PropertyFilters.tsx index f06106e..00cd41a 100644 --- a/src/app/portfolio/[slug]/components/PropertyFilters.tsx +++ b/src/app/portfolio/[slug]/components/PropertyFilters.tsx @@ -31,7 +31,6 @@ export default function PropertyFilters({ ----------------------------------------- */ useEffect(() => { if (currentEpc && expectedEpc) { - // expected must be BETTER than current if (epcIndex(expectedEpc) >= epcIndex(currentEpc)) { setExpectedEpc(""); } @@ -69,83 +68,118 @@ export default function PropertyFilters({ }); } + function handleKeyDown(e: React.KeyboardEvent) { + if (e.key === "Enter") { + e.preventDefault(); + apply(); + } + } + return ( -
- Hover over "New Property" to start adding properties to your
- Portfolio
-
+ Hover over “New Property” to start adding properties + to your portfolio.
No properties match your filters.
+ +