Skip to content

Commit

Permalink
fix: fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo authored and HendrikThePendric committed Dec 15, 2020
1 parent 825815d commit 3a627f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 3 additions & 2 deletions packages/widgets/src/SharingDialog/AccessSelect.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react'

import PropTypes from '@dhis2/prop-types'

import i18n from '@dhis2/d2-i18n'
import { MenuDivider, MenuItem, SingleSelectField } from '@dhis2/ui'

import { MenuDivider, MenuItem } from '@dhis2/ui'
import { SingleSelectField } from '../index.js'

import { accessStrings } from './sharingConstants'
import { accessSelectStyles } from './SharingDialog.styles'
Expand Down
8 changes: 2 additions & 6 deletions packages/widgets/src/SharingDialog/SharingDialog.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ import React from 'react'
import { storiesOf } from '@storybook/react'
import { CustomDataProvider } from '@dhis2/app-runtime'

import { SharingDialog } from '../index.js'

window.onChange = window.Cypress && window.Cypress.cy.stub()
window.onFocus = window.Cypress && window.Cypress.cy.stub()
window.onBlur = window.Cypress && window.Cypress.cy.stub()
import { SharingDialog } from './SharingDialog.js'

const customSearchData = {
'sharing/search': {
Expand Down Expand Up @@ -112,7 +108,7 @@ const customDataWithUserGroupAccesses = {
},
}

storiesOf('Component/Connected/SharingDialog', module)
storiesOf('SharingDialog', module)
.add('Simple', () => (
<CustomDataProvider data={customDefaultData}>
<SharingDialog type="dashboard" id="sharing-test" />
Expand Down

0 comments on commit 3a627f9

Please sign in to comment.