Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
chore(file-input): implement file/folder structure and import extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikThePendric authored and varl committed Nov 20, 2019
1 parent e3f44f4 commit fcc2502
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions src/FileInput/index.js → src/FileInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import propTypes from 'prop-types'
import cx from 'classnames'
import { instanceOfComponent } from '@dhis2/prop-types'

import { statusPropType, sizePropType } from '../common-prop-types'
import { Button } from '../Button'
import { Help } from '../Help'
import { spacers, colors } from '../theme'
import { Upload } from '../icons/Upload'
import { StatusIconNoDefault } from '../icons/Status'
import { SelectedFile } from './SelectedFile'
import { Placeholder } from './Placeholder'
import { statusPropType, sizePropType } from './common-prop-types.js'
import { Button } from './Button.js'
import { Help } from './Help.js'
import { spacers, colors } from './theme.js'
import { Upload } from './icons/Upload.js'
import { StatusIconNoDefault } from './icons/Status.js'
import { SelectedFile } from './FileInput/SelectedFile.js'
import { Placeholder } from './FileInput/Placeholder.js'

class FileInput extends PureComponent {
ref = createRef()
Expand Down
2 changes: 1 addition & 1 deletion src/FileInput/Placeholder.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import propTypes from 'prop-types'
import { colors, spacers } from '../theme'
import { colors, spacers } from '../theme.js'

const Placeholder = ({ children }) => (
<p>
Expand Down
6 changes: 3 additions & 3 deletions src/FileInput/SelectedFile.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react'
import propTypes from 'prop-types'

import { colors, spacers } from '../theme'
import { AttachFile } from '../icons/AttachFile'
import { Loading } from '../icons/Status'
import { colors, spacers } from '../theme.js'
import { AttachFile } from '../icons/AttachFile.js'
import { Loading } from '../icons/Status.js'

const SelectedFile = ({
label,
Expand Down

0 comments on commit fcc2502

Please sign in to comment.