stacker.news/pages
ekzyis b3d485e8c4
Refactor default payment method setting (#803)
* Refactor setting of default providers

* fixed warning about component update while rendering another component
* individual providers no longer need to know if they are the default or not
* default setting is now handled by WebLNContext -- the same context that returns the provider. this makes a lot more sense and is a lot easier to read
* default payment checkbox is now also disabled if there is only one enabled provider or if it is the default provider

* Fix order lost on page reload

On page reload, the providers were synced in the order they were loaded.

This means that the default payment provider setting was lost.

Fixed this by syncing order to local storage and on page reload, only syncing providers when they were initialized (else the order would have been lost again).
2024-02-09 09:42:26 -06:00
..
[name] territories 2023-12-04 21:34:06 -06:00
api use capture microservice 2024-01-30 18:22:40 -06:00
auth upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
invites More push notification types (#530) 2023-10-04 18:20:52 -05:00
invoices Allow zapping, posting and commenting without funds or an account (#336) 2023-08-11 18:50:57 -05:00
items/[id] territories 2023-12-04 21:34:06 -06:00
referrals fix custom dates to use ms since epoch 2023-11-14 10:23:44 -06:00
rewards remove snow 2023-12-25 18:05:45 -06:00
settings Refactor default payment method setting (#803) 2024-02-09 09:42:26 -06:00
stackers improve stat gathering 2024-01-19 15:19:26 -06:00
withdrawals merge non-normalized user subtypes fixing #645 2023-11-20 09:05:02 -06:00
~ search filter help text for exact phrase 2024-01-17 09:28:05 -06:00
404.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
500.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
_app.js Expose WebLN interface via React Context (#749) 2024-02-08 12:33:13 -06:00
_document.js Convert worker to ESM (#500) 2023-09-23 20:19:35 -05:00
_error.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
email.js upgrade to next-auth 4 (bonus: improve error pages) 2023-07-29 14:38:20 -05:00
live.js upgrade react-bootstrap 2023-07-24 13:53:53 -05:00
login.js show errors on settings during auth linking 2023-07-30 15:39:18 -05:00
notifications.js Notification badges (#595) 2023-11-08 18:17:01 -06:00
offline.js improve service worker asset precaching and offline page 2023-07-28 10:57:12 -05:00
satistics.js autowithdraw to lightning address 2024-01-11 13:10:07 -06:00
share.js Service worker rework, Web Target Share API & Web Push API (#324) 2023-07-04 14:36:07 -05:00
signup.js upgrade react-bootstrap 2023-07-24 13:53:53 -05:00
territory.js link to territory FAQ 2023-12-20 17:11:07 -06:00
wallet.js add ids to all toasts to help id rogue toasts 2024-01-28 13:26:32 -06:00