How to avoid having resources nested under Prisma in navigation? #1736
Answered
by
dziraf
whatuserever
asked this question in
Q&A
-
I'm just getting started with AdminJS using Express and Prisma. Following the docs for adding Prisma resources, my const options: AdminJSOptions = {
componentLoader,
rootPath: '/admin',
resources: [
{
resource: { model: getModelByName('User'), client: prisma },
},
],
}; However, this results in the resource being nested under I can't figure out how to avoid this. I tried the instructions here, but this simply renames |
Beta Was this translation helpful? Give feedback.
Answered by
dziraf
Jan 25, 2025
Replies: 1 comment 1 reply
-
navigation: { name: 'xxx' }
navigation: { name: 'xxx', icon: 'Activity' }
navigation: null
navigation: { icon: 'Activity' } You can use PascalCase names of icons from: https://feathericons.com/ |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
whatuserever
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
navigation: null
You can use PascalCase names of icons from: https://feathericons.com/