BugFix mobile menu & criteria state
This commit is contained in:
parent
d4ec9d067f
commit
446d568378
|
|
@ -37,7 +37,7 @@ export class BusinessListingService {
|
|||
}
|
||||
|
||||
if (criteria.state) {
|
||||
whereConditions.push(sql`${businesses.location}->>'state' = ${criteria.city.state}`);
|
||||
whereConditions.push(sql`${businesses.location}->>'state' = ${criteria.state}`);
|
||||
}
|
||||
|
||||
if (criteria.minPrice) {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ export class CommercialPropertyService {
|
|||
}
|
||||
|
||||
if (criteria.state) {
|
||||
whereConditions.push(sql`${schema.commercials.location}->>'state' = ${criteria.city.state}`);
|
||||
whereConditions.push(sql`${schema.commercials.location}->>'state' = ${criteria.state}`);
|
||||
}
|
||||
|
||||
if (criteria.minPrice) {
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@
|
|||
|
||||
<div *ngIf="isMenuOpen" class="fixed inset-0 bg-gray-800 bg-opacity-75 z-20">
|
||||
<div class="flex flex-col items-center justify-center h-full">
|
||||
<a href="#" class="text-white text-xl py-2">Pricing</a>
|
||||
<a href="#" class="text-white text-xl py-2">Log In</a>
|
||||
<a href="#" class="text-white text-xl py-2">Register</a>
|
||||
<!-- <a href="#" class="text-white text-xl py-2">Pricing</a> -->
|
||||
<a (click)="login()" class="text-white text-xl py-2">Log In</a>
|
||||
<a routerLink="/pricing" class="text-white text-xl py-2">Register</a>
|
||||
<button (click)="toggleMenu()" class="text-white mt-4">
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M6 18L18 6M6 6l12 12"></path>
|
||||
|
|
|
|||
Loading…
Reference in New Issue