Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add grid component #26

Merged
merged 4 commits into from
Feb 10, 2020
Merged

add grid component #26

merged 4 commits into from
Feb 10, 2020

Conversation

PierreCrb
Copy link
Contributor

No description provided.

import ColorsControl from '../../controls/ColorsControl'

const GridPanel = () => {
const [propsList] = useState([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tu n'as pas besoin de passer par un state ici, tu peux simplement mettre les composants dans le jsx :

 <TextControl label="Area" name="gridArea" />
 <TextControl label="Template areas" name="gridTemplateAreas" />
 <TextControl label="Gap" name="gridGap" />
...

@@ -248,6 +255,10 @@ export const DEFAULT_PROPS: PreviewDefaultProps = {
...FormErrorMessage.defaultProps,
children: 'Error message',
},
Grid: {
...Grid.defaultProps,
children: 'Lorem Ipsum',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pas besoin de renseigner le children, le composant va recevoir d'autres composants

const GridPanel = () => {
return (
<>
<ColorsControl withFullColor label="Color" name="bg" enableHues />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tu peux le retirer il est déjà présent dans le panel backgrounds

@baptadn baptadn merged commit ccff5d0 into master Feb 10, 2020
@baptadn baptadn deleted the feature/grid branch February 10, 2020 13:17
PierreCrb added a commit that referenced this pull request Feb 11, 2020
* add grid component

* update  grid props & grid panel

* remove colors control

Co-authored-by: Baptiste Adrien <adrien.baptiste@gmail.com>
Bastien-Wappizy added a commit to Wappizy/openchakra that referenced this pull request Aug 21, 2024
Bastien-Wappizy added a commit to Wappizy/openchakra that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants