Hi Adrian M I m new on AVO and I want to
# avo-2
m
Hi @lemon-wall-20836 , I'm new on AVO and I want to changed the message "No record found" and the SVG in EmptyStateComponent. I had ejected empty_state_component. But I can't figure out how to do it.

https://cdn.discordapp.com/attachments/740893011994738751/1131944059804582031/empty_state.png

l
the
No record found
label can be customized using the I18n feature https://docs.avohq.io/2.0/localization.html
m
yeah it is helpful for me but I want empty state image customization like if there are no any user in UserResource then there will be empty_user.svg and same goes for ProjectResource if there is no project then want to display empty_project.svg
l
then you need to override the
Avo::EmptyStateComponent
copy the component files
.rb
and
.erb
in your app and you can override it however you need it
next you should have access to
params[:controller]
which will give you the type of resource `avo/users`/`avo/products`, etc.
m
it is looking something I need, but I have a question, can we call that EmptyStateComponent from Resources?
l
It wil be displayed automatically
a
@lemon-wall-20836 following up on this thread - if I just want to remove the "no record found" SVG, is it possible to do that through config, or do I have to override the EmptyStateComponent to do that as well?
l
Override that component 🫡