Skip to content

Commit

Permalink
feat: lint!
Browse files Browse the repository at this point in the history
  • Loading branch information
travis committed Dec 18, 2023
1 parent 1749964 commit 9bd106c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/react/components/src/Uploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface UploadingProps {
}

function Uploading ({ file, files, storedDAGShards, uploadProgress }: UploadingProps): ReactNode {
const fileName = (files && files.length > 1) ? 'your files' : file?.name
const fileName = ((files != null) && files.length > 1) ? 'your files' : file?.name
return (
<div className='flex flex-col items-center w-full'>
<h1 className='font-bold text-sm uppercase text-zinc-950'>Uploading {fileName}</h1>
Expand Down Expand Up @@ -49,7 +49,7 @@ interface DoneProps {

const Done = ({ file, files, dataCID, storedDAGShards }: DoneProps): ReactNode => {
const cidString: string = dataCID?.toString() ?? ''
const fileName = (files && files.length > 1) ? 'your files' : file?.name
const fileName = ((files != null) && files.length > 1) ? 'your files' : file?.name
return (
<div>
<h1 className='text-gray-800'>Done!</h1>
Expand Down Expand Up @@ -114,7 +114,7 @@ function UploaderContents (): ReactNode {
</button>
</div>
</>
)
)
: <></>
} else {
return (
Expand Down

0 comments on commit 9bd106c

Please sign in to comment.