All files / atom/upload/src settings.js

88.88% Statements 8/9
100% Branches 0/0
50% Functions 1/2
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18    1x   1x             1x 1x 1x 1x   1x  
import loadable from '@loadable/component'
 
export const Dropzone = loadable(() => import('react-dropzone'), {ssr: true})
 
export const STATUSES = {
  ACTIVE: 'active',
  UPLOAD: 'upload',
  SUCCESS: 'success',
  ERROR: 'error'
}
 
export const BASE_CLASS = 'sui-AtomUpload'
export const CLASS_BLOCK_TEXT = `${BASE_CLASS}-blockText`
export const CLASS_BLOCK_TEXT_MAIN = `${CLASS_BLOCK_TEXT}-main`
export const CLASS_BLOCK_TEXT_SECONDARY = `${CLASS_BLOCK_TEXT}-secondary`
 
export const capitalize = text => text[0].toUpperCase() + text.substr(1)