mirror of
https://github.com/traberph/short.git
synced 2026-11-22 22:55:12 +00:00
List short links before link pages, matching the sidebar
On the admin user screen the sections were reversed, and the create buttons on that screen and the overview put link pages first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -57,12 +57,12 @@ export function AdminUserScreen({ username, me }: { username: string; me: Me })
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-wrap gap-2">
|
<div className="flex flex-wrap gap-2">
|
||||||
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
|
|
||||||
New link page
|
|
||||||
</Button>
|
|
||||||
<Button icon={<Plus />} onClick={() => setCreating("redirect")}>
|
<Button icon={<Plus />} onClick={() => setCreating("redirect")}>
|
||||||
New short link
|
New short link
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
|
||||||
|
New link page
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
@@ -80,13 +80,13 @@ export function AdminUserScreen({ username, me }: { username: string; me: Me })
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2 className="mb-3 text-base font-semibold">Link pages</h2>
|
<h2 className="mb-3 text-base font-semibold">Short links</h2>
|
||||||
<PageTable kind="linkpage" pages={theirs} empty={{ title: "No link pages", description: `${username} hasn't created any link pages.` }} />
|
<PageTable kind="redirect" pages={theirs} empty={{ title: "No short links", description: `${username} hasn't created any short links.` }} />
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2 className="mb-3 text-base font-semibold">Short links</h2>
|
<h2 className="mb-3 text-base font-semibold">Link pages</h2>
|
||||||
<PageTable kind="redirect" pages={theirs} empty={{ title: "No short links", description: `${username} hasn't created any short links.` }} />
|
<PageTable kind="linkpage" pages={theirs} empty={{ title: "No link pages", description: `${username} hasn't created any link pages.` }} />
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -62,12 +62,12 @@ export function OverviewScreen({ me }: { me: Me }) {
|
|||||||
description="Here's how your links are doing."
|
description="Here's how your links are doing."
|
||||||
actions={
|
actions={
|
||||||
<>
|
<>
|
||||||
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
|
|
||||||
New link page
|
|
||||||
</Button>
|
|
||||||
<Button icon={<Plus />} onClick={() => setCreating("redirect")}>
|
<Button icon={<Plus />} onClick={() => setCreating("redirect")}>
|
||||||
New short link
|
New short link
|
||||||
</Button>
|
</Button>
|
||||||
|
<Button variant="secondary" icon={<PanelsTopLeft />} onClick={() => setCreating("linkpage")}>
|
||||||
|
New link page
|
||||||
|
</Button>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user