-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Docs): module imports fixes #34
- Loading branch information
James Friedman
committed
Dec 6, 2017
1 parent
b41a20e
commit c8da84e
Showing
4 changed files
with
58 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
import React from 'react'; | ||
import { GridCell, Typography } from '../../src'; | ||
|
||
export const Header = ({ title, description, link }) => ( | ||
<GridCell span="12" className="header"> | ||
<Typography use="display1" tag="h2"> | ||
{title} | ||
</Typography> | ||
{description && ( | ||
<Typography use="subheading2" tag="div"> | ||
{description} | ||
</Typography> | ||
)} | ||
{link && ( | ||
<Typography use="body1"> | ||
<a href={link}>{link}</a> | ||
</Typography> | ||
)} | ||
</GridCell> | ||
export const Header = ({ title, description, link, module }) => ( | ||
<GridCell span="12" className="header"> | ||
<Typography use="display1" tag="h2"> | ||
{title} | ||
</Typography> | ||
{description && ( | ||
<Typography use="subheading2" tag="div"> | ||
{description} | ||
</Typography> | ||
)} | ||
{module && ( | ||
<Typography use="subheading2" tag="div"> | ||
import from <code>{module}</code> | ||
</Typography> | ||
)} | ||
{link && ( | ||
<Typography use="body1"> | ||
<a href={link}>{link}</a> | ||
</Typography> | ||
)} | ||
</GridCell> | ||
); | ||
|
||
export default Header; |
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