adminjs icon indicating copy to clipboard operation
adminjs copied to clipboard

There is no Box exported from adminjs

Open Chukstart opened this issue 3 years ago • 3 comments

Describe the bug The Documentation in this link https://docs.adminjs.co/tutorial-writing-react-components.html It's not correct I tried to export Box but it's not there even Intelisense can't seem to find it This took a huge amount of my time please fix the documentation to avoid this happening to some other unsuspecting developer

import React from 'react'
import { Box } from 'adminjs'

const Dashboard = (props) => {
  return (
    <Box>My custom dashboard</Box>
  )
}

export default Dashboard

Installed libraries and their versions

  • "adminjs": "^5.6.2",
  • "@adminjs/express": "^4.0.2"
  • "@adminjs/mongoose": "^2.0.1",

Chukstart avatar Feb 22 '22 16:02 Chukstart

Tutorials are currently outdated, we've recently started updating the documentation to match with the latest versions of modules. I'll try to prioritise this

dziraf avatar Feb 24 '22 09:02 dziraf

What should be used instead of <Box>?

CherryDT avatar May 02 '22 22:05 CherryDT

@CherryDT If you have vsCode using intellisense it will suggest other components exported from adminjs

Chukstart avatar May 03 '22 10:05 Chukstart

Closing because we've updated the documentation: https://docs.adminjs.co

dziraf avatar Dec 21 '22 11:12 dziraf