Selaa lähdekoodia

Fixed code formatting issues in the comment header option component (#23060)

tags/1.7.2
GuanMu 3 kuukautta sitten
vanhempi
commit
7c6415551d
No account linked to committer's email address
1 muutettua tiedostoa jossa 12 lisäystä ja 14 poistoa
  1. 12
    14
      web/app/components/app/annotation/header-opts/index.tsx

+ 12
- 14
web/app/components/app/annotation/header-opts/index.tsx Näytä tiedosto

await clearAllAnnotations(appId) await clearAllAnnotations(appId)
onAdded() onAdded()
} }
catch (_) {
catch (_) {
} }
finally {
setShowClearConfirm(false)
finally {
setShowClearConfirm(false)
} }
} }
const Operations = () => { const Operations = () => {
onClick={handleClearAll} onClick={handleClearAll}
className='mx-1 flex h-9 w-[calc(100%_-_8px)] cursor-pointer items-center space-x-2 rounded-lg px-3 py-2 text-red-600 hover:bg-red-50 disabled:opacity-50' className='mx-1 flex h-9 w-[calc(100%_-_8px)] cursor-pointer items-center space-x-2 rounded-lg px-3 py-2 text-red-600 hover:bg-red-50 disabled:opacity-50'
> >
<RiDeleteBinLine className='h-4 w-4'/>
<RiDeleteBinLine className='h-4 w-4' />
<span className='system-sm-regular grow text-left'> <span className='system-sm-regular grow text-left'>
{t('appAnnotation.table.header.clearAll')} {t('appAnnotation.table.header.clearAll')}
</span> </span>
position="br" position="br"
trigger="click" trigger="click"
btnElement={ btnElement={
<Button variant='secondary' className='w-8 p-0'>
<RiMoreFill className='h-4 w-4' />
</Button>
<RiMoreFill className='h-4 w-4' />
} }
btnClassName='p-0 border-0'
btnClassName='btn btn-secondary btn-medium w-8 p-0'
className={'!z-20 h-fit !w-[155px]'} className={'!z-20 h-fit !w-[155px]'}
popupClassName='!w-full !overflow-visible' popupClassName='!w-full !overflow-visible'
manualClose manualClose
) )
} }
{ {
showClearConfirm && (
<ClearAllAnnotationsConfirmModal
isShow={showClearConfirm}
onHide={() => setShowClearConfirm(false)}
onConfirm={handleConfirmed}
/>
showClearConfirm && (
<ClearAllAnnotationsConfirmModal
isShow={showClearConfirm}
onHide={() => setShowClearConfirm(false)}
onConfirm={handleConfirmed}
/>
) )
} }
</div> </div>

Loading…
Peruuta
Tallenna