Commit
•
dde655f
1
Parent(s):
6b373c5
chore: Remove unused variable assignment and alias
Browse files
storybook/components/result_list.story.exs
CHANGED
@@ -40,23 +40,22 @@ defmodule MedicalTranscriptionWeb.Storybook.ResultList do
|
|
40 |
end
|
41 |
|
42 |
defp stream_inserts_for_sample_rows do
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
# We don't need `at` or `limit` here. This helper aids in building up this data for us.
|
49 |
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
end
|
62 |
end
|
|
|
40 |
end
|
41 |
|
42 |
defp stream_inserts_for_sample_rows do
|
43 |
+
@sample_rows
|
44 |
+
|> Enum.with_index()
|
45 |
+
|> Enum.map(fn {{start_mark, end_mark, text}, index} ->
|
46 |
+
# `inserts` in %Phoenix.LiveView.LiveStream requires the following format: {index, at, item, limit}
|
47 |
+
# We don't need `at` or `limit` here. This helper aids in building up this data for us.
|
|
|
48 |
|
49 |
+
{
|
50 |
+
index,
|
51 |
+
nil,
|
52 |
+
%{
|
53 |
+
start_mark: start_mark,
|
54 |
+
end_mark: end_mark,
|
55 |
+
text: text
|
56 |
+
},
|
57 |
+
nil
|
58 |
+
}
|
59 |
+
end)
|
60 |
end
|
61 |
end
|
storybook/components/transcription_text_component.story.exs
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
defmodule MedicalTranscriptionWeb.Storybook.TranscriptionTextComponent do
|
2 |
use PhoenixStorybook.Story, :live_component
|
3 |
-
alias MedicalTranscription.Coding.CodeVectorMatch
|
4 |
|
5 |
def component, do: MedicalTranscriptionWeb.Components.TranscriptionTextComponent
|
6 |
|
|
|
1 |
defmodule MedicalTranscriptionWeb.Storybook.TranscriptionTextComponent do
|
2 |
use PhoenixStorybook.Story, :live_component
|
|
|
3 |
|
4 |
def component, do: MedicalTranscriptionWeb.Components.TranscriptionTextComponent
|
5 |
|