Skip to content

Commit

Permalink
change component name and simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatarnejad committed Nov 20, 2024
1 parent 50bb690 commit d90c4c0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
13 changes: 13 additions & 0 deletions app/components/work_packages/info_line_component.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<%=
flex_layout do |flex|
flex.with_column(mr: 2) do
render(WorkPackages::HighlightedTypeComponent.new(work_package: @work_package, font_size: :small))
end
flex.with_column(mr: 2) do
render(Primer::Beta::Text.new(font_size: :small, color: :muted)) { "##{@work_package.id}" }
end
flex.with_column do
render WorkPackages::StatusBadgeComponent.new(status: @work_package.status)
end
end
%>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

class WorkPackages::WorkPackageInfoLineComponent < ApplicationComponent
class WorkPackages::InfoLineComponent < ApplicationComponent
include OpPrimer::ComponentHelpers

def initialize(id:)
Expand Down

This file was deleted.

0 comments on commit d90c4c0

Please sign in to comment.