Show dupes loading

This commit is contained in:
ekzyis 2023-04-01 05:07:04 +02:00 committed by keyan
parent d43c7cc222
commit 29bee1c740
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,7 @@ import FeeButton, { EditFeeButton } from './fee-button'
import Delete from './delete'
import { Button } from 'react-bootstrap'
import { linkSchema } from '../lib/validate'
import Moon from '../svgs/moon-fill.svg'
export function LinkForm ({ item, editThreshold }) {
const router = useRouter()
@ -148,6 +149,12 @@ export function LinkForm ({ item, editThreshold }) {
</div>
{!item &&
<>
{dupesLoading &&
<div className='d-flex mt-2 justify-content-center'>
<Moon className='spin fill-grey' />
<div className='ml-3 text-muted' style={{ fontWeight: '600' }}>searching for dupes</div>
</div>
}
{dupesData?.dupes?.length > 0 &&
<div className='mt-3'>
<AccordianItem