timgremore commited on
Commit
865b340
1 Parent(s): 4548f2b

feat: Prefer heex for comprehension

Browse files
lib/medical_transcription_web/live/transcriptions_live/show.ex CHANGED
@@ -56,16 +56,15 @@ defmodule MedicalTranscriptionWeb.TranscriptionsLive.Show do
56
  <% end %>
57
 
58
  <div id="result_list" class="flex flex flex-col gap-14" phx-update="stream">
59
- <%= for {dom_id, row} <- @streams.transcription_rows do %>
60
- <.live_component
61
- module={TranscriptionTextComponent}
62
- id={dom_id}
63
- start_mark={row.start_mark}
64
- end_mark={row.end_mark}
65
- text={row.text}
66
- finalized_codes={@finalized_codes}
67
- />
68
- <% end %>
69
  </div>
70
  </div>
71
  </main>
 
56
  <% end %>
57
 
58
  <div id="result_list" class="flex flex flex-col gap-14" phx-update="stream">
59
+ <.live_component
60
+ :for={{dom_id, row} <- @streams.transcription_rows}
61
+ module={TranscriptionTextComponent}
62
+ id={dom_id}
63
+ start_mark={row.start_mark}
64
+ end_mark={row.end_mark}
65
+ text={row.text}
66
+ finalized_codes={@finalized_codes}
67
+ />
 
68
  </div>
69
  </div>
70
  </main>