Commit 9289a37
feat(stake): use the 3D chest as the rewards button, not a generic icon (#245)
The floating trigger was a lucide Gift glyph in Morpheus green, which had
nothing to do with the chest the dialog opens with. Both now show the same
asset: the chest is the button, and the dialog keeps the full-size
interactive one.
It is loaded through next/dynamic with ssr disabled, so a
react-three-fiber scene never lands in the initial bundle of every route
for a 56px button; the Gift glyph is the loading and no-WebGL fallback.
The wrapper sets pointer-events-none — the chest ships its own
OrbitControls and click target, and inside a button both would swallow
the press — and hides the scene's corner label, which is sized for the
dialog.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 68b7de0 commit 9289a37
1 file changed
Lines changed: 36 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
34 | 66 | | |
35 | 67 | | |
36 | 68 | | |
| |||
263 | 295 | | |
264 | 296 | | |
265 | 297 | | |
266 | | - | |
| 298 | + | |
267 | 299 | | |
268 | 300 | | |
269 | 301 | | |
| |||
326 | 358 | | |
327 | 359 | | |
328 | 360 | | |
329 | | - | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
330 | 364 | | |
331 | 365 | | |
332 | 366 | | |
| |||
0 commit comments