mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
Move the reduce-devices sheet (~170 lines of inline JSX + its useQuery + useMutation + seeding useEffect) into src/components/subscription/sheets/DeviceReductionSheet.tsx. Parent passes the shared targetDeviceLimit state (also used by the revoke flow earlier) plus open/close + ids; the sheet owns the reduction-info query and the reduce mutation, so neither fires until the sheet is open. Subscription.tsx: 2477 → 2288 lines (−189).