Skip to content

Commit

Permalink
Fixed link for upload field
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Lefter committed Jan 27, 2021
1 parent 85ef113 commit 680e08c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/components/molecules/Upload/Upload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,15 @@
&:hover {
cursor: pointer;
}
.ebs-icon {
color: $text-color;
}
}
&__name {
font-weight: 600;
margin-bottom: 7px;
font-size: rem(13px);
color: $text-color;
}
&__size {
min-width: 80px;
Expand Down
4 changes: 2 additions & 2 deletions src/components/molecules/Upload/Upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const Upload = React.forwardRef<any, UploadProps>((props, ref) => {
</div>

<div className="upload__file">
<a href={internalFile?.url} className="upload__file__name">
<a href={internalFile?.url} target="_blank" rel="noopener noreferrer" className="upload__file__name">
{internalFile?.name}
</a>

Expand All @@ -105,7 +105,7 @@ export const Upload = React.forwardRef<any, UploadProps>((props, ref) => {
</div>
)}

{internalError && <div className="upload__error">{internalError.message}</div>}
{internalFile && internalError && <div className="upload__error">{internalError.message}</div>}
</>
);
});

0 comments on commit 680e08c

Please sign in to comment.