-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #404 from dcos-labs/mp/feat/pageheader-children
feat(pageheader): allows pageheader to render children
- Loading branch information
Showing
6 changed files
with
161 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import * as React from "react"; | ||
import { css } from "react-emotion"; | ||
import { spaceSizes } from "../../shared/styles/styleUtils/modifiers/modifierUtils"; | ||
import { pageHeaderPaddingSize } from "./PageHeader"; | ||
|
||
const PageHeaderTabs = ({ children }) => { | ||
return ( | ||
<div | ||
className={css` | ||
margin-left: -${spaceSizes[pageHeaderPaddingSize]}; | ||
margin-right: -${spaceSizes[pageHeaderPaddingSize]}; | ||
`} | ||
> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
export default PageHeaderTabs; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { default as PageHeader } from "./components/PageHeader"; | ||
export { default as PageHeaderTabs } from "./components/PageHeaderTabs"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters