Browse Source

Cleanup: Search Area section markup

pull/142/head
Jose Olarte III 2 days ago
parent
commit
b7fac423c9
  1. 11
      src/components/LocationSearchSection.vue
  2. 9
      src/views/AccountViewView.vue

11
src/components/LocationSearchSection.vue

@ -1,6 +1,13 @@
<template> <template>
<section v-if="isRegistered" class="mt-4"> <section
<h2 class="text-lg font-semibold mb-2">Location for Searches</h2> v-if="isRegistered"
id="sectionSearchLocation"
class="bg-slate-100 rounded-md overflow-hidden px-4 py-4 mt-8 mb-8"
aria-labelledby="searchLocationHeading"
>
<h2 id="searchLocationHeading" class="mb-2 font-bold">
Location for Searches
</h2>
<div v-if="searchAreaLabel" class="mb-2"> <div v-if="searchAreaLabel" class="mb-2">
<span class="text-slate-700">Current Area: </span> <span class="text-slate-700">Current Area: </span>
<span class="font-mono">{{ searchAreaLabel }}</span> <span class="font-mono">{{ searchAreaLabel }}</span>

9
src/views/AccountViewView.vue

@ -143,20 +143,11 @@
</section> </section>
<PushNotificationPermission ref="pushNotificationPermission" /> <PushNotificationPermission ref="pushNotificationPermission" />
<section
id="sectionSearchLocation"
class="bg-slate-100 rounded-md overflow-hidden px-4 py-4 mt-8 mb-8"
aria-labelledby="searchLocationHeading"
>
<h2 id="searchLocationHeading" class="mb-2 font-bold">
Location for Searches
</h2>
<LocationSearchSection <LocationSearchSection
:is-registered="isRegistered" :is-registered="isRegistered"
:search-area-label="searchAreaLabel" :search-area-label="searchAreaLabel"
@set-search-area="onSetSearchArea" @set-search-area="onSetSearchArea"
/> />
</section>
<!-- User Profile --> <!-- User Profile -->
<section <section

Loading…
Cancel
Save