Skip to content

Commit

Permalink
Revert to simple EmptyStateComponent content
Browse files Browse the repository at this point in the history
  • Loading branch information
bensheldon committed Jun 14, 2022
1 parent 837d871 commit 9c2abec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 50 deletions.
24 changes: 0 additions & 24 deletions app/components/developers/empty_state_component.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/views/developers/index.html.erb
Expand Up @@ -54,7 +54,7 @@
<% end %>
<% else %>
<div class="mt-16">
<%= render Developers::EmptyStateComponent.new(seedable: Rails.env.development?) %>
<%= render EmptyStateComponent.new(title: t(".empty_state.title"), body: t(".empty_state.body"), icon: "icons/outline/user_group.svg") %>
</div>
<% end %>
</div>
Expand Down
7 changes: 3 additions & 4 deletions config/locales/en.yml
Expand Up @@ -196,10 +196,6 @@ en:
created: Your profile was added!
details:
title: Details
empty_state_component:
body: Try changing or clearing your filters.
title: No developers found
unseeded_body_html: Run <code>bin/rails db:seed</code> to create development data.
form:
creating: Creating...
notifications:
Expand Down Expand Up @@ -248,6 +244,9 @@ en:
title: Work preferences
index:
description: "%{developers_count}+ Ruby on Rails developers looking for their next gig. Juniors to seniors and everyone in between, you'll find them all here."
empty_state:
body: Try changing or clearing your filters.
title: No developers found
title: Ruby on Rails developers
title_og: Hire Ruby on Rails developers
new_field_component:
Expand Down
21 changes: 0 additions & 21 deletions test/components/developers/empty_state_component_test.rb

This file was deleted.

0 comments on commit 9c2abec

Please sign in to comment.