Skip to content

Commit

Permalink
Merge branch 'master' into radio_select
Browse files Browse the repository at this point in the history
  • Loading branch information
williamernest committed May 24, 2021
2 parents fc42e4d + b244396 commit 0db80ef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/file-uploader/file-uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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(
Expand Down Expand Up @@ -165,12 +166,11 @@ function FileUploader(props: PropsT) {
}}
/>
) : props.errorMessage ? null : (
<Block marginBottom="scale300">
<SpinnerComponent
$size={SPINNER_SIZE.medium}
{...spinnerProps}
/>
</Block>
<SpinnerComponent
$size={SPINNER_SIZE.medium}
$style={{marginBottom: theme.sizing.scale300}}
{...spinnerProps}
/>
)}
{(props.errorMessage || props.progressMessage) &&
props.errorMessage ? (
Expand Down

0 comments on commit 0db80ef

Please sign in to comment.