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

fix: apply layout components throughout #3256

Merged
merged 2 commits into from
May 21, 2020

Conversation

bryceosterhaus
Copy link
Member

fixes #3255

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3c1308c:

Sandbox Source
hardcore-architecture-88e39 Configuration
jovial-platform-ni70b Configuration

@coveralls
Copy link

coveralls commented May 20, 2020

Pull Request Test Coverage Report for Build 111837807

  • 26 of 28 (92.86%) changed or added relevant lines in 12 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 78.676%

Changes Missing Coverage Covered Lines Changed/Added Lines %
packages/clay-layout/src/index.tsx 14 16 87.5%
Totals Coverage Status
Change from base Build 111833096: 0.06%
Covered Lines: 2392
Relevant Lines: 2832

💛 - Coveralls

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 20, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit e8a6d0e:

Sandbox Source
wonderful-wood-o7or8 Configuration
brave-snowflake-fupm7 Configuration

@@ -7,6 +7,7 @@ import {ClayDropDownWithItems} from '@clayui/drop-down';
import {ClayCheckbox} from '@clayui/form';
import ClayIcon from '@clayui/icon';
import ClayLabel from '@clayui/label';
import * as ClayLayout from '@clayui/layout';
Copy link
Member

Choose a reason for hiding this comment

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

This one is taken as an example, I've seen similar cases throughout the commit, but we seem to be importing all and then just using one subcomponent. In this case <ClayLayout.ContentCol on lines 140 & 163

Copy link
Member Author

Choose a reason for hiding this comment

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

Just updated to have a default export so that we don't have to do this

@@ -33,7 +34,9 @@ const ClayManagementToolbar: React.FunctionComponent<IProps> & {
}
)}
>
<div className="container-fluid container-fluid-max-xl">{children}</div>
<ClayLayout.ContainerFluid size="xl">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is size really necessary as it's the default already?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is not necessary... i just forgot there was a default

@@ -18,7 +19,7 @@ export default () => {
const [selectedItems, setSelectedItems] = React.useState<any>([]);

return (
<div className="container-fluid">
<ClayLayout.ContainerFluid>
Copy link
Contributor

Choose a reason for hiding this comment

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

Interestingly, this is would actually be xl because of the defaults

@@ -537,7 +538,7 @@ storiesOf('Demos|Recharts', module)
</div>
</div>

<div className="container-fluid container-view">
<ClayLayout.ContainerFluid view>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same, this would actually now be xl because of defaults which might not be so bad after all 😉

@bryceosterhaus
Copy link
Member Author

Going to merge for release

@bryceosterhaus bryceosterhaus merged commit 0d01860 into liferay:master May 21, 2020
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.

Apply new @clayui/layout component
4 participants