Rename keyboard_shortcuts/1 to results_footer/1
This commit is contained in:
@@ -2,7 +2,7 @@ defmodule MusicLibraryWeb.AddRecordComponent do
|
|||||||
use MusicLibraryWeb, :live_component
|
use MusicLibraryWeb, :live_component
|
||||||
|
|
||||||
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
import MusicLibraryWeb.RecordComponents, only: [format_label: 1, type_label: 1]
|
||||||
import MusicLibraryWeb.SearchComponents, only: [keyboard_shortcuts: 1]
|
import MusicLibraryWeb.SearchComponents, only: [results_footer: 1]
|
||||||
|
|
||||||
alias MusicBrainz.ReleaseGroupSearchResult
|
alias MusicBrainz.ReleaseGroupSearchResult
|
||||||
alias MusicLibrary.Records
|
alias MusicLibrary.Records
|
||||||
@@ -57,7 +57,7 @@ defmodule MusicLibraryWeb.AddRecordComponent do
|
|||||||
>
|
>
|
||||||
{gettext("No results")}
|
{gettext("No results")}
|
||||||
</div>
|
</div>
|
||||||
<.keyboard_shortcuts total_results={@release_groups_total_count} />
|
<.results_footer total_results={@release_groups_total_count} />
|
||||||
</div>
|
</div>
|
||||||
"""
|
"""
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -167,11 +167,11 @@ defmodule MusicLibraryWeb.SearchComponents do
|
|||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
<.keyboard_shortcuts />
|
<.results_footer />
|
||||||
"""
|
"""
|
||||||
attr :total_results, :integer, default: 0
|
attr :total_results, :integer, default: 0
|
||||||
|
|
||||||
def keyboard_shortcuts(assigns) do
|
def results_footer(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div class="p-4 bg-zinc-50 dark:bg-zinc-900 rounded-b-lg border-t border-zinc-200 dark:border-zinc-700">
|
<div class="p-4 bg-zinc-50 dark:bg-zinc-900 rounded-b-lg border-t border-zinc-200 dark:border-zinc-700">
|
||||||
<div class="flex items-center justify-between text-xs text-zinc-500 dark:text-zinc-400">
|
<div class="flex items-center justify-between text-xs text-zinc-500 dark:text-zinc-400">
|
||||||
|
|||||||
@@ -100,5 +100,5 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Footer with keyboard shortcuts -->
|
<!-- Footer with keyboard shortcuts -->
|
||||||
<.keyboard_shortcuts total_results={@total_results} />
|
<.results_footer total_results={@total_results} />
|
||||||
</.structured_modal>
|
</.structured_modal>
|
||||||
|
|||||||
Reference in New Issue
Block a user