Commit fd6440f
committed
fix(toast): read theme from localStorage (context is out of scope)
- ToastProvider wraps VisualSettingsProvider, so useVisualSettings was always undefined
- Circular constraint (Achievement uses Toast, VisualSettings uses Achievement) prevents reordering
- Read fezcodex-theme directly from localStorage at mount — toasts are transient1 parent e0cbc4f commit fd6440f
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
0 commit comments