-
Notifications
You must be signed in to change notification settings - Fork 12
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 #1588 from dhis2/bugathon-2023-kfmt
fix: combined bugathon issues
- Loading branch information
Showing
14 changed files
with
470 additions
and
152 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { CustomDataProvider } from '@dhis2/app-runtime' | ||
import { storiesOf } from '@storybook/react' | ||
import React from 'react' | ||
import { InterpretationsUnit } from '../components/Interpretations/InterpretationsUnit/index.js' | ||
|
||
storiesOf('IntepretationsUnit', module).add('Default', () => { | ||
return ( | ||
<CustomDataProvider | ||
data={{ | ||
interpretations: { | ||
interpretations: [], | ||
}, | ||
}} | ||
> | ||
<InterpretationsUnit | ||
currentUser={{ | ||
name: 'Tom Wakiki', | ||
}} | ||
id="abcd" | ||
onReplyIconClick={Function.prototype} | ||
type="eventVisualization" | ||
visualizationHasTimeDimension={true} | ||
/> | ||
</CustomDataProvider> | ||
) | ||
}) | ||
|
||
storiesOf('IntepretationsUnit', module).add( | ||
'With no time dimensions warning', | ||
() => { | ||
return ( | ||
<CustomDataProvider | ||
data={{ | ||
interpretations: { | ||
interpretations: [], | ||
}, | ||
}} | ||
> | ||
<InterpretationsUnit | ||
currentUser={{ | ||
name: 'Tom Wakiki', | ||
}} | ||
id="abcd" | ||
onReplyIconClick={Function.prototype} | ||
type="eventVisualization" | ||
visualizationHasTimeDimension={false} | ||
/> | ||
</CustomDataProvider> | ||
) | ||
} | ||
) |
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
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
Oops, something went wrong.