Skip to content

Commit

Permalink
refactor(fileinputfieldwithlist): move to ui-widgets
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Move FileInputFieldWithList from ui-core to ui-widgets,
new import from @dhis2/ui-widgets or @dhis2/ui.
  • Loading branch information
varl committed Mar 9, 2020
1 parent 6059625 commit a512f00
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
import React, { Component } from 'react'
import propTypes from '@dhis2/prop-types'

import { statusPropType, sizePropType } from '../common-prop-types.js'
import { FileInputField } from '../FileInputField/FileInputField.js'

import { FileListItemWithRemove } from './FileListItemWithRemove.js'
;('') // TODO: https://github.com/jsdoc/jsdoc/issues/1718

const statusPropType = propTypes.mutuallyExclusive(
['valid', 'warning', 'error'],
propTypes.bool
)

const sizePropType = propTypes.mutuallyExclusive(
['small', 'large'],
propTypes.bool
)

/**
* @module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from 'react'
import propTypes from '@dhis2/prop-types'

import { FileListItem } from '../FileListItem/FileListItem.js'
import { FileListItem } from '@dhis2/ui-core'

class FileListItemWithRemove extends Component {
handleRemove = event => {
Expand Down

0 comments on commit a512f00

Please sign in to comment.