accounts/dashboard
Haitao Pan 8ff0c8e3e4 fix: unwrap async params in download route segment
### Issue:
Next.js App Router expects params to be a Promise that must be awaited before accessing properties.

### Error:
```
Route "/download/[...segments]" used `params.segments`.
`params` is a Promise and must be unwrapped with `await`
or `React.use()` before accessing its properties.
```

### Solution:
- Made component async: `export default async function DownloadListing`
- Updated params type: `Promise<{ segments: string[] }>`
- Unwrapped with await: `const { segments: rawSegments } = await params`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 17:10:00 +08:00
..
docs refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
public fix: resolve TypeScript import errors for download types module 2025-11-11 17:08:46 +08:00
scripts refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
src fix: unwrap async params in download route segment 2025-11-11 17:10:00 +08:00
tests refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
types fix: resolve TypeScript import errors for download types module 2025-11-11 17:08:46 +08:00
.config_summary.txt refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
.eslintrc.json
.gitignore Add dashboard UI tests and CI coverage (#556) 2025-10-17 16:52:28 +08:00
.nvmrc
.yarnrc.yml fix(dashboard): resolve all module import errors and fix CSS loading 2025-11-11 12:04:29 +08:00
Dockerfile
Makefile Ensure dashboard dev target installs dependencies (#558) 2025-10-17 16:57:34 +08:00
next-env.d.ts fix: resolve TypeScript import errors for download types module 2025-11-11 17:08:46 +08:00
next.config.mjs refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
package-lock.json fix(dashboard): resolve @types/react version conflict 2025-11-06 11:49:09 +08:00
package.json refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
postcss.config.mjs perf: convert postcss.config to mjs to eliminate module parsing warning 2025-11-11 14:25:49 +08:00
start.sh
tailwind.config.js refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
test-esm.js refactor(config): modernize to ES Module format 2025-11-11 12:26:04 +08:00
tsconfig.json refactor(dashboard): adopt src app router layout (#667) 2025-11-11 10:45:37 +08:00
tsconfig.tsbuildinfo fix: unwrap async params in download route segment 2025-11-11 17:10:00 +08:00
yarn.lock feat(dashboard): add marketing product pages (#649) 2025-11-09 15:44:38 +08:00