Skip to content

Commit

Permalink
chore(Upload): remove unused classes (#4374)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored Dec 9, 2024
1 parent 56e9caf commit 3e0a25f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,15 @@ const UploadFileListCell = ({
) : (
<div className="dnb-upload__file-cell__text-container">
{onClick ? (
<Button
variant="tertiary"
className={classnames('dnb-upload__file-cell__title')}
onClick={onClick}
>
<Button variant="tertiary" onClick={onClick}>
{file.name}
</Button>
) : (
<Anchor
target="_blank"
href={imageUrl}
download={download ? file.name : null}
className={classnames(
'dnb-anchor--no-launch-icon',
'dnb-upload__file-cell__title'
)}
className="dnb-anchor--no-launch-icon"
rel="noopener noreferrer"
>
{file.name}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ describe('UploadFileListCell', () => {
/>
)

const element = document.querySelector('.dnb-upload__file-cell__title')
const element = document.querySelector(
'.dnb-upload__file-cell__text-container a'
)

expect(element.textContent).toMatch('file.dat')
})
Expand Down

0 comments on commit 3e0a25f

Please sign in to comment.