Skip to content

Commit 0f84204

Browse files
committed
loading for admin
1 parent 3146a82 commit 0f84204

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

app/changelog/%5Fadmin/loading.tsx

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
export default function Loading() {
2+
return (
3+
<div className="fixed inset-0 flex items-center justify-center">
4+
<h3 className="text-2xl text-primary font-semibold">
5+
<div
6+
className="mx-auto mb-8 h-16 w-16 animate-spin rounded-full border-4 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite]"
7+
role="status"
8+
/>{' '}
9+
Loading...
10+
</h3>
11+
</div>
12+
);
13+
}

app/changelog/%5Fadmin/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ export default async function ChangelogsListPage() {
2525

2626
return (
2727
<Fragment>
28-
<header className="mb-4 col-start-3 col-span-2 text-left">
28+
<header className="mb-4 col-start-2 col-span-2 text-left">
2929
<Button>
3030
<PlusIcon />
3131
<Link href="/changelog/_admin/create">New Changelog</Link>
3232
</Button>
3333
</header>
34-
<section className="overflow-x-auto col-start-3 col-span-8 shadow-md rounded-lg">
34+
<section className="overflow-x-auto col-start-2 col-span-10 shadow-md rounded-lg">
3535
<table className="w-full text-sm text-left text-gray-500">
3636
<thead className="text-xs text-gray-700 uppercase bg-gray-50">
3737
<tr>

0 commit comments

Comments
 (0)