chore(ui): lint

This commit is contained in:
psychedelicious
2024-09-25 17:04:44 +10:00
committed by Kent Keirsey
parent 97013e08ef
commit bd0aabb064

View File

@@ -17,8 +17,16 @@ export const StagingAreaToolbarToggleShowResultsButton = memo(() => {
return (
<IconButton
tooltip={shouldShowStagedImage ? t('controlLayers.stagingArea.showResultsOn') : t('controlLayers.stagingArea.showResultsOff')}
aria-label={shouldShowStagedImage ? t('controlLayers.stagingArea.showResultsOn') : t('controlLayers.stagingArea.showResultsOff')}
tooltip={
shouldShowStagedImage
? t('controlLayers.stagingArea.showResultsOn')
: t('controlLayers.stagingArea.showResultsOff')
}
aria-label={
shouldShowStagedImage
? t('controlLayers.stagingArea.showResultsOn')
: t('controlLayers.stagingArea.showResultsOff')
}
data-alert={!shouldShowStagedImage}
icon={shouldShowStagedImage ? <PiEyeBold /> : <PiEyeSlashBold />}
onClick={toggleShowResults}