|
|
@ -38,6 +38,9 @@ export default function Bluetooth() { |
|
|
|
} |
|
|
|
}); |
|
|
|
}; |
|
|
|
function scanning() { |
|
|
|
return <div className='flex items-center gap-x-3'><p>扫瞄中</p><SpinLoading /></div> |
|
|
|
} |
|
|
|
return ( |
|
|
|
<div> |
|
|
|
<NavBar className="bg-white" back={null}> |
|
|
@ -47,7 +50,7 @@ export default function Bluetooth() { |
|
|
|
<section> |
|
|
|
<div className="h-[42px] px-5 flex items-center justify-between"> |
|
|
|
<h1 className="h-[42px] leading-[42px] text-base text-text font-medium">附近设备</h1> |
|
|
|
<SpinLoading /> |
|
|
|
{contextState.bleList.some((bl) => bl.linked) ? undefined : scanning()} |
|
|
|
</div> |
|
|
|
<div className="bg-white px-5 text-sm text-text"> |
|
|
|
{contextState.bleList.map((ble) => ( |
|
|
|