Skip to content

Commit 8ab132f

Browse files
authored
Merge pull request #259 from duyet/chore/ui
chore(ui): alternative table extras show current table name instead of database
2 parents b895f02 + 7f989a3 commit 8ab132f

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

app/database/[database]/[table]/extras/alternative-tables.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function AlternativeTables({
4141
className="group flex flex-row gap-2 text-muted-foreground"
4242
>
4343
<CardStackMinusIcon className="size-3" />
44-
{database}
44+
{table}
4545
<ChevronDownIcon
4646
className="size-3 transition duration-300 group-data-[state=open]:rotate-180"
4747
aria-hidden="true"

app/play/page.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { ErrorAlert } from '@/components/error-alert'
2+
import { SingleLineSkeleton, TableSkeleton } from '@/components/skeleton'
3+
4+
export default function Play() {
5+
return (
6+
<>
7+
<TableSkeleton />
8+
<TableSkeleton cols={5} />
9+
<ErrorAlert message="Error message" query="SELECT 1" />
10+
<SingleLineSkeleton />
11+
<SingleLineSkeleton className="w-[300px]" />
12+
<SingleLineSkeleton className="w-[200px] space-x-0 pt-0" />
13+
</>
14+
)
15+
}

0 commit comments

Comments
 (0)