docs: redesign docs collapsible categories (#1748)

* docs: redesign docs collapsible categories

Closes #1341

* Fix people creation from People table page

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Thaïs
2023-09-29 16:22:04 +02:00
committed by GitHub
parent b52190c707
commit 1c35ccce4e
10 changed files with 194 additions and 107 deletions

View File

@ -3,5 +3,7 @@
"position": 10,
"collapsible": true,
"collapsed": true,
"className": "navbar-sub-menu"
"customProps": {
"icon": "TbPlus"
}
}

View File

@ -3,5 +3,7 @@
"position": 3,
"collapsible": true,
"collapsed": false,
"className": "navbar-sub-menu"
"customProps": {
"icon": "TbTerminal2"
}
}

View File

@ -251,8 +251,6 @@ const MyComponent = ({ MyIcon }: { MyIcon: IconComponent }) => {
For React to understand that the component is a component, you need to use PascalCase, to later instanciate it with `<MyIcon>`
```tsx
## Prop Drilling: Keep It Minimal
Prop drilling, in the React context, refers to the practice of passing state variables and their setters through multiple component layers, even if intermediary components don't use them. While sometimes necessary, excessive prop drilling can lead to:

View File

@ -40,7 +40,7 @@ git clone git@github.com:twentyhq/twenty.git
### 3. PostgreSQL database
You also need to have a PosgresSQL database available. If you already have one available, you can skip this step.
You also need to have a PostgreSQL database available. If you already have one available, you can skip this step.
If you don't, you can provision one through `docker` using the following command: