SoftwareBrothers / adminjs-dev

Development environment for AdminJS
MIT License
48 stars 26 forks source link

fix bad path in doc example #22

Closed joelongstreet closed 3 years ago

joelongstreet commented 3 years ago

I noticed a pretty significant error in the documentation which caused me a lot of problems when developing my first custom component. On the writing react tutorial components page under the section "Example of overriding how dashboard looks:" the sample component code is incorrect. Instead of

import { Box } from 'admin-bro'

it should read

import { Box } from '@admin-bro/design-system'

Importing any component from admin-bro causes the UI to render an error (image attached). Searching through Admin bro's slack channel shows a lot of other people had this same issue.