Skip to content

Commit

Permalink
Clarify store_credit invalidated styles
Browse files Browse the repository at this point in the history
If a store credit has been invalidated it will show a red badge, if it
has not, it will show a green badge. This is more in line with
expectations than the previous colour scheme.
  • Loading branch information
MadelineCollier committed Dec 4, 2024
1 parent 07a2d3a commit bfa3739
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def columns
header: :invalidated,
col: { class: "w-[15%]" },
data: ->(store_credit) do
store_credit.invalidated? ? component('ui/badge').yes : component('ui/badge').no
store_credit.invalidated? ? component('ui/badge').new(name: :yes, color: :red, size: :m) : component('ui/badge').new(name: :no, color: :green, size: :m)
end
},
]
Expand Down

0 comments on commit bfa3739

Please sign in to comment.