Skip to content

Commit

Permalink
Fix a typo, hide society info if it isn't provided
Browse files Browse the repository at this point in the history
  • Loading branch information
HappyNTH committed Oct 27, 2024
1 parent 3f02d55 commit 2740efa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions components/booking/AccessibilityInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
Any accessibility requirements you chose to share with us will be
communicated by email to the production team. We cannot guarantee that
your requirements can be met, though a member of the team will be in
touch to discuss your needs if required. If you have any questions,
please [email protected].
touch to discuss your requirements if needed. If you have any questions,
please email [email protected].
</template>
</form-label>
</UiCard>
Expand Down
4 changes: 2 additions & 2 deletions components/booking/overview/AccessibilityOverview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{{ booking.accessibilityInfo }}
</p>
<UiStaButton
class="bg-sta-orange hover:bg-sta-orange-dark transition-colors lg:mx-8 mx-4"
class="bg-sta-orange hover:bg-sta-orange-dark transition-colors mx-2"
@click="
() => {
changingAccessibility = true;
Expand All @@ -35,7 +35,7 @@
/>
</form-label>
<UiStaButton
class="bg-sta-green hover:bg-sta-green-dark transition-colors lg:mx-8 mx-4"
class="bg-sta-green hover:bg-sta-green-dark transition-colors mx-2"
@click="
() => {
booking.accessibilityInfo = newAccessibility;
Expand Down
11 changes: 5 additions & 6 deletions pages/society/[slug]/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@
/>
</div>
<div
v-if="society.website || society.contact"
class="flex justify-center w-full lg:w-3/4 p-4 bg-sta-gray-light rounded-lg"
>
<div>
Expand All @@ -86,9 +87,9 @@
</h2>
<table class="table-auto mt-2">
<tbody>
<tr>
<tr v-if="society.website">
<th class="align-top pb-2 pr-2">Website:</th>
<td v-if="society.website" class="align-top">
<td class="align-top">
<a
:href="society.website"
target="_blank"
Expand All @@ -98,11 +99,10 @@
{{ society.website }}
</a>
</td>
<td v-else class="align-top">No Website Listed</td>
</tr>
<tr>
<tr v-if="society.contact">
<th class="align-top pr-2">Contact:</th>
<td v-if="society.contact" class="align-top">
<td class="align-top">
<a
:href="`mailto:${society.contact}`"
target="_blank"
Expand All @@ -112,7 +112,6 @@
{{ society.contact }}
</a>
</td>
<td v-else class="align-top">No Email Listed</td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 2740efa

Please sign in to comment.