From 77310492ad1d2d47242170c430e32d9c7077c34c Mon Sep 17 00:00:00 2001 From: Vojtech Miksu Date: Mon, 24 May 2021 12:40:45 -0700 Subject: [PATCH] fix(file-uploader): remove block from the implementation --- src/file-uploader/file-uploader.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/file-uploader/file-uploader.js b/src/file-uploader/file-uploader.js index 430730cc0f..51a3408331 100644 --- a/src/file-uploader/file-uploader.js +++ b/src/file-uploader/file-uploader.js @@ -10,7 +10,7 @@ import * as React from 'react'; import Dropzone from 'react-dropzone'; import {LocaleContext} from '../locale/index.js'; -import {Block} from '../block/index.js'; +import {useStyletron} from '../styles/index.js'; import {Button, KIND, SHAPE, SIZE as BUTTON_SIZE} from '../button/index.js'; import {getOverrides} from '../helpers/overrides.js'; import {ProgressBar} from '../progress-bar/index.js'; @@ -35,6 +35,7 @@ function prependStyleProps(styleProps) { function FileUploader(props: PropsT) { const {overrides = {}} = props; + const [, theme] = useStyletron(); const [Root, rootProps] = getOverrides(overrides.Root, StyledRoot); const [FileDragAndDrop, fileDragAndDropProps] = getOverrides( @@ -165,12 +166,11 @@ function FileUploader(props: PropsT) { }} /> ) : props.errorMessage ? null : ( - - - + )} {(props.errorMessage || props.progressMessage) && props.errorMessage ? (