Skip to content

Commit 34dfc0c

Browse files
authoredApr 7, 2021
Merge pull request #6132 from marmelab/doc-add-aside-screenshot
[Doc] Add illustration for the <Aside> component
2 parents f237d02 + 757c6b1 commit 34dfc0c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed
 

‎docs/CreateEdit.md

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ const PostEditActions = ({ basePath, data }) => (
201201

202202
### Aside component
203203

204+
![Aside component](./img/aside.png)
205+
204206
You may want to display additional information on the side of the form. Use the `aside` prop for that, passing the component of your choice:
205207

206208
{% raw %}

‎docs/Show.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ export const PostShow = (props) => (
125125

126126
### Aside component
127127

128+
![Aside component](./img/aside.png)
129+
128130
You may want to display additional information on the side of the resource detail. Use the `aside` prop for that, passing the component of your choice:
129131

130132
{% raw %}
@@ -385,7 +387,7 @@ import {
385387
} from 'react-admin';
386388

387389
const ScrollableTabbedShowLayout = props => (
388-
<Show{...props}>
390+
<Show {...props}>
389391
<TabbedShowLayout tabs={<TabbedShowLayoutTabs variant="scrollable" {...props} />}>
390392
...
391393
</TabbedShowLayout>

‎docs/img/aside.png

176 KB
Loading

0 commit comments

Comments
 (0)