Skip to content

Commit

Permalink
[DOCS] Improved Demos for EuiPrettyDuration. (#3350)
Browse files Browse the repository at this point in the history
* Added Snippets to EuiPrettyDuration.

* Improved Snippets.

* Update pretty_duration_example.js

* Removing snippets and adding isCopyable to demos

Co-authored-by: miukimiu <[email protected]>
  • Loading branch information
walter-ind and elizabetdev authored Apr 23, 2020
1 parent fca5e83 commit f63f53f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-docs/src/views/pretty_duration/pretty_duration.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function prettyDurationExample() {
<Fragment>
{examples.map(({ start, end, quickRanges, dateFormat }, idx) => (
<div key={idx}>
<EuiCodeBlock paddingSize="s">
<EuiCodeBlock paddingSize="s" isCopyable language="js">
prettyDuration(&apos;{start}&apos;, &apos;{end}&apos;,{' '}
{JSON.stringify(quickRanges)}, &apos;
{dateFormat}&apos;)
Expand Down

0 comments on commit f63f53f

Please sign in to comment.