feat(ui): enhance table and admin components with improved layout and status display
- Updated global CSS to center-align table headers and cells, ensuring a consistent layout. - Modified admin table components to replace switches with status badges for better clarity. - Enhanced internationalization support by adding new strings for version actions and validation messages in multiple locales. - Refactored configuration document screens to include version selection and improved user feedback on status changes.
This commit is contained in:
@@ -308,11 +308,11 @@ export function PlayerTicketsConsole(): React.ReactElement {
|
||||
<TableHead>{t("drawNo")}</TableHead>
|
||||
<TableHead>{t("playCode")}</TableHead>
|
||||
<TableHead>{t("number")}</TableHead>
|
||||
<TableHead className="text-right">{t("betAmount")}</TableHead>
|
||||
<TableHead className="text-right">{t("actualDeduct")}</TableHead>
|
||||
<TableHead className="text-center">{t("betAmount")}</TableHead>
|
||||
<TableHead className="text-center">{t("actualDeduct")}</TableHead>
|
||||
<TableHead>{t("status")}</TableHead>
|
||||
<TableHead>{t("failReason")}</TableHead>
|
||||
<TableHead className="text-right">{t("winAmount")}</TableHead>
|
||||
<TableHead className="text-center">{t("winAmount")}</TableHead>
|
||||
<TableHead>{t("placedAt")}</TableHead>
|
||||
<TableHead>{t("updatedAt")}</TableHead>
|
||||
</TableRow>
|
||||
@@ -349,10 +349,10 @@ export function PlayerTicketsConsole(): React.ReactElement {
|
||||
<TableCell className="font-mono text-xs">{row.draw_no ?? "—"}</TableCell>
|
||||
<TableCell className="text-xs">{playCodeLabel(row.play_code)}</TableCell>
|
||||
<TableCell className="font-mono text-xs">{row.original_number ?? "—"}</TableCell>
|
||||
<TableCell className="text-right tabular-nums text-xs">
|
||||
<TableCell className="text-center tabular-nums text-xs">
|
||||
{row.total_bet_amount_formatted}
|
||||
</TableCell>
|
||||
<TableCell className="text-right tabular-nums text-xs">
|
||||
<TableCell className="text-center tabular-nums text-xs">
|
||||
{row.actual_deduct_amount_formatted}
|
||||
</TableCell>
|
||||
<TableCell className="text-xs">
|
||||
@@ -363,7 +363,7 @@ export function PlayerTicketsConsole(): React.ReactElement {
|
||||
<TableCell className="max-w-[14rem] text-xs text-muted-foreground">
|
||||
{row.fail_reason_text ?? row.fail_reason_code ?? "—"}
|
||||
</TableCell>
|
||||
<TableCell className="text-right tabular-nums text-xs">{winLabel}</TableCell>
|
||||
<TableCell className="text-center tabular-nums text-xs">{winLabel}</TableCell>
|
||||
<TableCell className="text-xs">{formatTs(row.placed_at)}</TableCell>
|
||||
<TableCell className="text-xs">{formatTs(row.updated_at)}</TableCell>
|
||||
</TableRow>
|
||||
|
||||
Reference in New Issue
Block a user