Skip to content

Commit

Permalink
docs: updates variable name for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
anechol committed Oct 16, 2023
1 parent 59c1515 commit 77de1bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
upload_card_classes << 'sage-upload-card--error' if component.has_error.present?
upload_card_classes << component.generated_css_classes
upload_card_input_label = component.selection_label.present? ? component.selection_label : "Select a file"
upload_card_imagetypes = component.accepted_file_types.present? ? component.accepted_file_types.join(",") : "image/*"
upload_card_image_types = component.accepted_file_types.present? ? component.accepted_file_types.join(",") : "image/*"

upload_card_preview_image_options = {
class: "sage-upload-card__preview",
Expand All @@ -15,7 +15,7 @@
<div class="<%= upload_card_classes.join(" ") %>" <%= component.generated_html_attributes.html_safe %>>
<div class="sage-upload-card__dropzone">
<% unless component.custom_file_input_field %>
<input class="sage-upload-card__input" accept="<%= upload_card_imagetypes %>" multiple="multiple" type="file" autocomplete="off" name="<%= component.name.present? ? component.name : component.id %>" id="<%= component.id %>" />
<input class="sage-upload-card__input" accept="<%= upload_card_image_types %>" multiple="multiple" type="file" autocomplete="off" name="<%= component.name.present? ? component.name : component.id %>" id="<%= component.id %>" />
<% end %>
<% if component.selection_preview.present? %>
<%= image_tag(component.selection_preview, upload_card_preview_image_options) %>
Expand Down

0 comments on commit 77de1bf

Please sign in to comment.