Skip to content

Commit

Permalink
Tidy up location partial
Browse files Browse the repository at this point in the history
The `location` partial is just a wrapper for `location_selector` and can be discarded.
  • Loading branch information
jdudley1123 committed Nov 14, 2024
1 parent 3e07928 commit c3c2f3d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
11 changes: 0 additions & 11 deletions app/views/forecasts/_location.html.erb

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/forecasts/_location_selector.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div>
<div class="location p-4 pt-2">
<div class="relative mt-2">
<button id="location-selector-button" type="button" class="relative w-full cursor-default rounded-full bg-white py-3 pl-3 mb-3 pr-10 text-left text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 focus:outline-none focus:ring-2 focus:ring-indigo-500 sm:text-sm sm:leading-6" aria-haspopup="listbox" aria-expanded="true" aria-labelledby="listbox-label">
<span class="flex items-center">
Expand Down
8 changes: 7 additions & 1 deletion app/views/forecasts/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<%= render partial: "location" %>
<div class="inner p-4">
<h2 class="text-xl font-bold">
Air quality forecast
</h2>
</div>

<%= render partial: "location_selector" %>
<%= render partial: "forecast_tabs", cerc_forecasts: @forecasts %>
<%= render partial: "map" %>
<%= render partial: "predictions", locals: { forecast: @forecasts.first } %>
Expand Down

0 comments on commit c3c2f3d

Please sign in to comment.