mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-15 22:14:55 +00:00
refactor: move shared modules out of app/
`app/` should hold route segments only. Game logic and the player-card component are imported by both routes, so they belong outside: app/loto-game-logic.ts -> lib/game-logic.ts app/loto-player-board.tsx -> components/player-board.tsx Imports use the existing @/* alias. Drops the redundant `loto-` prefix. Also fixes the package name from the scaffold default.
This commit is contained in:
1 parent
dd64aa6ed3
commit
254a6dc39a
8 files changed
+16
-16
No files matched your search
@@ -88,7 +88,7 @@ All pages use `"use client"` because:
|
||||
Files with `"use client"`:
|
||||
- `app/page.tsx`
|
||||
- `app/master/page.tsx`
|
||||
- `app/loto-player-board.tsx`
|
||||
- `components/player-board.tsx`
|
||||
|
||||
## Data Flow: Mark a Cell
|
||||
|
||||
|
||||
Reference in new issue
Block a user