Skip to content

Commit

Permalink
Add more End of Cycle related previews for visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
elceebee committed Jun 20, 2024
1 parent 40b6a3e commit da7093c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module CandidateInterface
class CarryOverAlertPreview < ViewComponent::Preview
def twenty_twenty_four
application_form = ApplicationForm.new(recruitment_cycle_year: 2024, phase: 'apply_1')

render CandidateInterface::CarryOverAlertComponent.new(application_form:)
end
end

class CandidateInterface::CarryOverAlertComponent < CandidateInterface::CarryOverInsetTextComponent
def render?
true
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module CandidateInterface
class ReopenBannerAlertPreview < ViewComponent::Preview
def twenty_twenty_four
render CandidateInterface::ReopenBannerComponentPreviewComponent.new(
phase: 'apply_1',
flash_empty: true,
)
end
end

class CandidateInterface::ReopenBannerComponentPreviewComponent < CandidateInterface::ReopenBannerComponent
def render?
true
end
end
end

0 comments on commit da7093c

Please sign in to comment.