Skip to content

Commit

Permalink
waterfall
Browse files Browse the repository at this point in the history
  • Loading branch information
brittanyjoiner15 committed Jan 16, 2020
1 parent 1164226 commit 2779a79
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/

import { storiesOf } from '@storybook/react';
import React from 'react';
import { SyncBadge } from './SyncBadge';

storiesOf('app/TransactionDetails/SyncBadge', module).add(
'sync=true',
() => {
return (
<SyncBadge sync={true}/>
);
},
{
info: {
source: false
}
}
).add(
'sync=false',
() => {
return (
<SyncBadge sync={false}/>
);
},
{
info: {
source: false
}
}
).add(
'sync=undefined',
() => {
return (
<SyncBadge/>
);
},
{
info: {
source: false
}
}
)
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function WaterfallItem({
</ErrorOverviewLink>
) : null}
<Duration item={item} />
{item.docType === 'span' && <SyncBadge sync={item.span.span.sync} />}
{item.docType === 'span' && <SyncBadge sync={item.doc.span.sync} />}
</ItemText>
</Container>
);
Expand Down

0 comments on commit 2779a79

Please sign in to comment.