fix: useSigitProfiles dep, map item keys warnining, sign button styles, placeholder, optional button label #160
@ -43,7 +43,7 @@ const FileList = ({
|
||||
</ul>
|
||||
</div>
|
||||
<Button variant="contained" fullWidth onClick={handleDownload}>
|
||||
{downloadLabel ? downloadLabel : 'Download Files'}
|
||||
{downloadLabel || 'Download Files'}
|
||||
|
||||
</Button>
|
||||
</div>
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user
You can probably use the
??
operator. ShouldDownload Files
be a constant?||
(logical OR) should be used instead of??
(Nullish Coalescing).With
??
if downloadLabel is blank string it will return blank but with||
we will get default valueDownload Files