CopyPastor

Detecting plagiarism made easy.

Score: 2; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Reposted on 2020-09-26
by Kia Kaha

Original Post

Original - Posted on 2020-09-26
by Kia Kaha



            
Present in both answers; Present only in the new answer; Present only in the old answer;

In case somebody is still stumbling upon this issue - just passing the props forward is not enough based on how the SimpleShowLayout works behind the scenes.
I am working on a `react-admin` npm package where I have implemented a basic recursive `BoxedShowLayout`. It allows you to nest as many `<Box>` components as needed like @Pedro Viera have shown and the `react-admin fields` will still recieve the needed `props` accordinly.
Check it out here: [ra-compact-ui/BoxedShowLayout][1]
Example:

<Show {...props}> <BoxedShowLayout> <Box display="flex"> <Box> <TextField source="firstName" /> </Box> <Box> <TextField source="lastName" /> </Box> </Box> </SimpleShowLayout> </Show>
[1]: https://github.com/ValentinnDimitroff/ra-compact-ui/blob/master/src/show/BoxedShowLayout.js
In case somebody is still stumbling upon this issue - just passing the props forward is not enough based on how the SimpleShowLayout works behind the scenes.
I am working on a `react-admin` npm package where I have implemented a basic recursive `BoxedShowLayout`. It allows you to nest as many `<Box>` components as needed like @Pedro Viera have shown and the `react-admin fields` will still recieve the needed `props` accordinly.
Check it out here: [ra-compact-ui/BoxedShowLayout][1]
Example:

<Show {...props}> <BoxedShowLayout> <Box display="flex"> <Box> <TextField source="firstName" /> </Box> <Box> <TextField source="lastName" /> </Box> </Box> </SimpleShowLayout> </Show>
[1]: https://github.com/ValentinnDimitroff/ra-compact-ui/blob/master/src/show/BoxedShowLayout.js

        
Present in both answers; Present only in the new answer; Present only in the old answer;