Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Jan 17, 2025
1 parent 6c37950 commit 32befe4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/avo/discreet_information.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def timestamp_item(item)
updated_at = record.updated_at.strftime(time_format)

DiscreetInformationItem.new(
tooltip: I18n.t('avo.discreet_information_timestamps_html', created_at:, updated_at:),
tooltip: I18n.t("avo.discreet_information_timestamps_html", created_at:, updated_at:),
icon: "heroicons/outline/clock"
)
end
Expand All @@ -36,7 +36,7 @@ def parse_payload(item)
icon: Avo::ExecutionContext.new(target: item[:icon], record: record, resource: self, view: view).handle,
url: Avo::ExecutionContext.new(target: item[:url], record: record, resource: self, view: view).handle,
url_target: Avo::ExecutionContext.new(target: item[:url_target], record: record, resource: self, view: view).handle,
label: Avo::ExecutionContext.new(target: item[:label], record: record, resource: self, view: view).handle,
label: Avo::ExecutionContext.new(target: item[:label], record: record, resource: self, view: view).handle
)
end

Expand Down
6 changes: 3 additions & 3 deletions spec/dummy/app/avo/resources/product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ class Avo::Resources::Product < Avo::BaseResource
cover_url: record.image.attached? ? main_app.url_for(record.image.variant(resize_to_fill: [300, 300])) : nil,
title: record.title,
body: simple_format(record.description),
badge_label: record.status == :new ? "New" : "Updated",
badge_color: record.status == :new ? "green" : "orange",
badge_title: record.status == :new ? "New product here" : "Updated product here"
badge_label: (record.status == :new) ? "New" : "Updated",
badge_color: (record.status == :new) ? "green" : "orange",
badge_title: (record.status == :new) ? "New product here" : "Updated product here"
}
end,
html: -> do
Expand Down

0 comments on commit 32befe4

Please sign in to comment.